__label__YES "add parameter com_prearm_lock to lock actuators when prearmed"
__label__YES "this parameter is meant to prevent any actuator motion when prearmed."
__label__YES ">when the system is prearmed (i.e."
__label__YES "the safety button is pressed, or the safety button is disabled with cbrk_io_safety), non-throttle outputs are active."
__label__NO "this is visible on platforms where servomotors control flight, like the flaps on a fixed wing or the yaw servo on a tri-copter."
__label__NO "if actuator motion before arming is undesirable, set this parameter."
__label__NO ">fixes #"
__label__YES "copter: add option to keep motors running while armed."
__label__NO "subject says it all."
__label__YES "motors should be running at all time while armed, limited to a minimum speed, not stop if throttle stick is down in stabilize mode."
__label__NO ">more detailed reason here:"
__label__YES "copter: do not enter auto mode if no mission defined or exit immediately to loiter or land"
__label__YES "with no mission defined, arducopter still allows the copter to switch to auto mode but it does not set any of the roll, pitch, yaw or throttle modes so essentially the copter is left in it's previous state so it will appear in the logs that it's in auto mode but actually it's in stabilize, or loiter or whatever mode the copter was in before it was switched to auto."
__label__YES ">we should change it so that it either it refuses to go into auto (i.e."
__label__YES "flight mode remains at it's previous value) or the mission exits immediately and switches to either loiter or land."
__label__YES "plane: unintended/unexplaned start up on loss or no reciever input"
__label__NO "starting up apm with the pwm's grounded(receiver not bound), results in a motor start after sec."
__label__YES "copter: log in the dataflash when sensors go bad"
__label__NO "currently we send the sensor health to the gcs via the mavlink system status message but we don't write this to the dataflash."
__label__NO "we would likely need to extend the ap"" structure to include health bits for each sensor."""
__label__NO "we should consider whether we want to store the health of each sensor individually or not."
__label__NO "microsd full, stop writing logs."
__label__NO "after about logs my microsd gb is full (k free), and pixhawk has stopped writing any log, don't delete the old ones."
__label__YES "copter: add loiter to throttle failsafe options"
__label__YES "when failsafe is activated, rtl/land may not always be a viable option."
__label__NO "such as urban/parkfly situation."
__label__NO "it would be reasonable to add loiter in failsafe."
__label__YES "so that in certain condition they will not cause hassle to environment"
__label__YES "plane: improved failsafe handling during auto-landings"
__label__YES "#### issue details if an aircraft is performing an automatic landing (after a do_land_start) and encounters a failsafe with an action of land, it will restart the landing sequence from the beginning."
__label__YES "if - for example - an aircraft encounters a critical battery failsafe on final approach, the resulting aborted landing and go-around can be especially taxing on the already-low battery."
__label__YES "suggest that failsafe behavior be updated such that if the aircraft is already performing a landing sequence and encounters a failsafe with land action (or perhaps also rtl with rtl_autoland ) that it simply continue the approach rather than revert to do_land_start."
__label__NO ">#### version ap.."
__label__NO ">#### platform [ ] all [ ] antennatracker [ ] copter [x] plane [ ] rover [ ] submarine"
__label__NO ">#### airframe type fixed-wing airplane"
__label__NO ">#### hardware type cube black"
__label__NO ">#### logs can share some log excerpts upon request."
__label__YES "copter ..-rc allows arming with motor interlock enabled"
__label__YES "#### issue details it has been discovered that copter-..-rc allows arming of tradheli with motor interlock enabled."
__label__NO "this is considered to be a serious safety issue for helicopters."
__label__NO ">#### version copter-..-rc"
__label__NO ">#### platform [ ] all [ ] antennatracker [x] copter [ ] plane [ ] rover [ ] submarine"
__label__NO ">#### airframe type tradheli"
__label__NO ">#### hardware type demonstrated in pixhawk and in sitl"
__label__YES "safety-related motors spin when connecting battery"
__label__NO "- seen in version (release version or githash): fcc - on flight controller (if applicable): dtfc"
__label__YES ">issue details: while plugging in the battery on a few occasions the back motors spun."
__label__NO "@mlyle suggested testing the ""reboot"" button in the gcs with the battery connected to see if they spin."
__label__YES "i tried this times, and all times at least one motor spun up, like it was armed then disarmed immediately."
__label__NO "add param com_prearm_mode"
__label__NO "replacement of #"
__label__YES ">- add param com_prearm_mode condition to enter the prearmed state, an intermediate state between disarmed and armed in which non-throttling actuators are active."
__label__NO "value disabled value safety button value always"
__label__YES ">- io: respect actuator_armed.prearmed flag arm non-throttling actuators on io only when the prearmed flag is set."
__label__NO "(same behaviour as fmu)."
__label__NO ">fixes # #"
__label__YES "avoidance and safe landing: 'tf buffer: could not retrieve requested transform from buffer, unregistered'"
__label__NO "uorb: fix several race conditions during topic initialization"
__label__NO "possible race conditions (they all happen between the check of existence of a topic and trying to create the node): - single instance, with multiple advertisers during the first advertise: both advertisers see the topic as non-existent and try to advertise it."
__label__NO "one of them will fail, leading to an error message."
__label__YES "this is the cause for `telemetry_status` advert failure seen in sitl in rare cases."
__label__NO "- multi-instance: subscription to non-existing instance -> px_open fails, and the subscriber tries to create the node."
__label__NO "if during that time a publisher publishes that instance, the subscriber will get (instance+) (or fails if the max number of instances is exceeded)."
__label__NO "this is a race that goes pretty much unnoticed."
__label__NO "- multi-instance: publishers can get the same instance (if is_published() is false in case both have not published data yet)."
__label__NO "this can also go unnoticed."
__label__NO "- single-instance advertisers, and they both open a node exclusively during advertisement, and one of them will fail to open the node with -ebusy."
__label__NO ">this pr fixes all of them, and there should be no noticeable changes for the rest of the system."
__label__NO ">there's a semantic change for the flag `_published` to `_advertised`."
__label__NO "this does not change anything for the system, since a topic was required to do a publication when advertised."
__label__NO "the change is however required to avoid race conditions."
__label__NO "it also allows to do an advertisement w/o data publication, avoiding the need for garbage/zeroed data publication on startup at many places."
__label__NO ">see individual commits as well."
__label__YES "don't allow arming during a transition"
__label__YES "we recently had a problem with our vtol vehicle that on arming the throttle was set to % immediately."
__label__YES "on log analysis this was found to be due to the pilot switching from fw to mc just before arming, this meant the vehicle was still in a back transition state and set to mc power as such."
__label__NO "example of this;"
__label__YES ">to solve this i have added an extra check before arming that ensures if the vehicle is currently in a transition state arming will be rejected."
__label__NO ">this was tested on a bench vtol."
__label__YES "i tried arming when not in a transition state and when in a transition state to ensure it was rejecting the arming at the correct times."
__label__NO log;
__label__NO "navio_sysfs_rc_in: only publish input_rc if connected and all channels are non-zero"
__label__YES "flight termination: lockdown if failure is detected on takeoff"
__label__YES "during the first few seconds after takeoff, the failure detector is allowed to trigger motor lockdown."
__label__YES "this is done for safety reasons to detect tipping-over or unstable tuning gains."
__label__YES ">sitl test: takeoff with unstable gains"
__label__NO ">fyi @jaeyoung-lim"
__label__YES "gps lost in position control (or rtl) lands without pilot having control"
__label__YES "**describe the bug** when gps is lost while flying in posctl i expect the vehicle to go into altctl so that the pilot can still bring the vehicle safely back."
__label__YES "however, what happens instead is that a blind land is initiated, even though the mode displayed in qgc is altctl."
__label__NO ">the same can be reproduced in rtl."
__label__NO "switching to manual control does still work but chances are a user will not try that in time!"
__label__NO ">**to reproduce** steps to reproduce the behavior: ."
__label__NO "use: ."
__label__NO "`make px_sitl jmavsim` ."
__label__NO "takeoff and fly in posctl (e.g. using joystick in qgc)."
__label__NO .
__label__NO "enable failure injection: `param set sys_failure_en ` ."
__label__NO "trigger gps lost: `failure gps off`"
__label__NO ">**log files and screenshots**"
__label__NO >
__label__YES "stuck baro can lead to flyaway"
__label__NO "**describe the bug** as part of the failsafe testing in # i tried out what happens when the baro value is stuck, so the identical value keeps getting published."
__label__YES "i could see that this could happen when something physically blocks the baro."
__label__YES ">what seems to happen in this case is that altitude is controlled against stale baro data which can lead to a flyaway."
__label__YES "commander: use arm_disarm() helper for safety button disarm"
__label__YES "this adds some logging so you know if the safety button was the reason for disarm."
__label__YES "multicopter land detector ground contact fixes"
__label__NO "opening this for discussion/testing of possible fixes for"
__label__NO >
__label__NO "flight: disable stack checking on targets that were missed"
__label__NO "not sure why flyingf was missed; brain was missed because it was not-yet-in-tree."
__label__YES "clarify arming configuration"
__label__NO "current texts are misleading for switch arming."
__label__NO "see taulabs/taulabs#"
__label__YES "clarify arming configuration, warn when throttle not checked"
__label__YES "add +throttle to all options which check throttle position."
__label__YES "add a warning in gcs when an option which doesn't check throttle is selected."
__label__YES "change arming combobox label so it no longer states that all configurations check throttle position."
__label__NO ">fixes #."
__label__NO ">![screenshot from -- ]("
__label__NO >
__label__NO >[](
__label__NO >
__label__NO "sparky reboots on inputs setup"
__label__NO "using recent builds of next i'm getting reboots on my sparky board when setting up inputs with a ppm rx."
__label__YES ">i've tried two different rx's (though admittedly both homemade flysky rx's so i'm not % sure there's not a hardware issue going on.) and tried powering the rx both through the sparky and directly off the bec."
__label__YES ">either way my board is rebooting near the end of the inputs wizard (between the center the sticks step to just after the confirm failsafe step) or if i try manual setup it's rebooting almost as soon as i try to change anything."
__label__YES "engines may arm at startup with invalid rc input settings"
__label__NO "as shown by this configuration file with invalid rc input settings"
__label__YES ">some invalid rc input configurations result in uncommanded arming at startup."
__label__NO "if autotune is also configured, autotuning may also begin automatically as soon as the battery is plugged in."
__label__NO "need minimum deadtime on syncpwm output"
__label__NO "re: issue #"
__label__NO ">my proposed fix is, around here:"
__label__NO "pios_servo/oneshot: ensure dead time."
__label__YES "now max pulse length is passed into pios_servo, and we make sure we're ""past"" that point by a defined margin before we'll disable the timer."
__label__NO ">pios_servo should get factored common in the future and non-hpwm variants of the code should get removed in that refactor."
__label__YES ">this depends on all channels in a oneshot bank being defined with the same ""max"" time to be fully protective."
__label__NO ">fixes #"
__label__NO >
__label__NO >[](
__label__NO >
__label__NO "gcs: safety: vehicle setup wizard + test outputs"
__label__YES "report from @dustin that he ran vehicle setup wizard while the test outputs box was left checked, and the motors spun up at the completion of the vehicle setup wizard."
__label__NO ">relates to #, but we'd be looking for a more minimal fix here, i think."
__label__YES "multirotor motors should spin when armed by default"
__label__NO "we suggest people do this."
__label__NO "we should make not doing so a conscious decision."
__label__YES "telemetry over radio safety issue"
__label__NO "i use oplinkmini with a bluetooth module to allow my surface tablet to communicate with sparky over mhz set at mw using bind wizard."
__label__YES "after connecting the tablet and arming the front of the quad came up when applying throttle but the rear stayed down, motors stayed at idle, when checking in gcs the compass was spinning constantly at a high rate and also the artificial horizon moving in all directions."
__label__YES "the control radio had lost all settings and the motors were at - were they should have been on one-shot."
__label__YES "disconnected everything, plugged usb in and all looked at it should be in gcs, took off and flew an autotune."
__label__NO "checked at home with radio again and would not regconise board but some of the settings were readable."
__label__NO "loaded taulabs and everything works as it should using the above method."
__label__YES "flew an autotune and gcs telemetry working fine."
__label__YES "i use the gcs at the field to make changes to autonmous flight modes."
__label__YES "s.bus control safety anomaly: throttle up, unresponsive to disarm switch"
__label__YES "i experienced a very concerning safety event yesterday at the field where i had my goggles on, armed, applied some throttle and immediately lost control of the rc, though the osd did not indicate failsafe (by moving into st)."
__label__YES ">i heard throttle starting to increase, flipped my disarm switch, the machine did not respond, throttle continued to increase."
__label__NO "i kicked the quad off the ammo can i was launching from, held it upside down with my shoe and ripped the xt plug out."
__label__NO ">i'm pulling the dvr footage."
__label__NO "we could potentially audit s.bus failsafe path / s.bus frame receipt code paths as well."
__label__YES "flight - msp bridge stack space overflows causing reset."
__label__YES "during bench testing of latest next plus #, resets were observed when both gps and msp modules were enabled."
__label__YES "cause of reset traced to insufficient msp bridge stack space, likely due to new comp gps calculations."
__label__NO "with msp bridge stack size increased to bytes, reset no longer observed, and free stack space of ~ bytes indicated."
__label__NO >
__label__NO >[](
__label__NO >
__label__NO "gcs: do not automatically apply uav settings with import"
__label__NO "this will import all settings to a temporary object, but nothing will be modified in the fc without user intervention."
__label__NO "the apply button will make settings temporarily active (apply to ram), while the save button will save settings to the persistent memory (flash)"
__label__NO ">fixes #"
__label__NO >
__label__NO >[](
__label__NO >
__label__YES "motors continue to run after ""motor test"" unchecked"
__label__NO "on release-: -e gcs, with a brain, setup for x-quad, oneshot, ppm input, when using the ""test outputs"" select box on the output tab, i am able to use the sliders to test the motors."
__label__YES "if, however, i ""uncheck"" the test outputs, the motors continue to run."
__label__YES "switch arming is completely broken in multiple ways"
__label__NO "in renatus originally, but probably won't stay here."
__label__YES ">things to think about: - failsafe and what happens to armed state (especially in conjunction with +delay modes) - funny interaction with low throttle timeout-- especially in conjunction with +delay modes) - funniness of armed_still_holding state - edge vs."
__label__NO "level triggered behavior - manualcontrol's enclosing state machine"
__label__YES "report: hangtime stays engaged in failsafe"
__label__YES "the hangtime is correct for low throttle while valid signal but failsafe kicks in lps for ~ seconds when hangtime is set to seconds."
__label__NO "this may be expected behavior just not what i was expecting :)"
__label__YES "manualcontrol: prevent spurious disarms in altitude hold mode"
__label__YES "altitude hold mode is an ""autonomous flight mode"" for the purpose of the test in transmitter_control."
__label__NO "that is, low throttle values for extended times can be legal."
__label__YES "if the ""don't disarm on low throttle when autonomous"" is set, don't disarm under these circumstances in altitude hold mode."
__label__YES "else, in a prolonged descent, copter may drop out of the sky."
__label__NO >
__label__NO >[](
__label__NO >
__label__YES "actuator: don't lps forever in failsafe"
__label__NO "fixes #"
__label__NO >
__label__NO >[](
__label__NO >
__label__NO "transmitter_control: require minimum input ranges to be configured"
__label__YES "this prevents us from acting on input when there's basically no resolution and it's all dominated by jitter."
__label__NO ">fixes #"
__label__NO >
__label__NO >[](
__label__NO >
__label__NO "attitude: increase stack size to from"
__label__NO "static stack analysis indicates function will use at peak, primarily through world magnetic model."
__label__YES "this is a nasty one, because most attempts to dynamically measure stack won't cause home position update."
__label__YES "hence only at the beginning of real navigation flights have we been blowing stack for quite some time!"
__label__NO eek!
__label__NO >
__label__NO >[](
__label__NO >
__label__NO "flight: sbus: don't attempt to use time to synchronize"
__label__NO "connects to #"
__label__YES ">background: we now have users that have had significant anomalies with sbus + brain + arming switch."
__label__NO "neither is at a rate that's conclusive."
__label__YES "the known switch arming issues mentioned in # are a significant confound."
__label__YES ">however, in auditing the sbus code i noticed that we rely on pretty specific timing that relates to the futaba air-interface that third party rx firmwares may not always try so hard to comply with."
__label__NO "this seems bad-- while this timing is probably considerably helpful in ensuring synchronization with genuine futaba stuff and rejecting illegitimate data, it may work against us in other cases."
__label__NO ">non-openpilot ecosystem sbus decoders do not have this check."
__label__NO >
__label__NO >[](
__label__NO >
__label__YES "flight: manualcontrol: debounce disarm for ms"
__label__YES "with reports of disarm-in-flight on sbus + switch+throttle arming + brain, it's become clear we're really vulnerable to a single aberrant frame in the switch+throttle / switch+delay modes."
__label__YES "so debounce-- don't listen to a switch disarm for ms."
__label__NO >
__label__NO >[](
__label__NO >
__label__NO "gcs/config: outputwidget: disable test-in-progress under bad circumstances"
__label__YES "like tab change or autopilot disconnection."
__label__NO ">also remove some legacy logic to gray things in the config output widget when underlying changes happen."
__label__NO ">finally, tell setup wizard to toggle the ui away from config."
__label__NO ">fixes #"
__label__NO >
__label__NO >[](
__label__NO >
__label__YES "power-up issue with a sparky"
__label__NO "after setup for my fixed wing craft i observe a problem when i connect my flight battery without connecting usb."
__label__NO "i have no issue when i connect usb first, followed by battery second."
__label__NO "there is a problem if i just connect the battery only."
__label__YES ">the problem looks like a glitching of the power rails."
__label__NO "the power leds blink abnormally."
__label__YES "the servos glitch and then end up at their extreme positions instead of centered like they should be."
__label__NO ">the battery is attached to an esc with bec and the cable then attached to servo output channel ."
__label__NO ">i'm using the dronin release from january th for both the gcs and the firmware onboard the plane."
__label__YES ">things i've ruled out: low battery (i've used a fresh cell battery charged to .v) incorrect servo connnections (control of surfaces and throttle is correct w/ usb plugged in)"
__label__NO ">any suggestions on things to try?"
__label__NO "sparky: bl: don't drive channels low on reset"
__label__NO "connects to #"
__label__NO >
__label__NO >[](
__label__NO >
__label__YES "gcs should strongly urge user to use switch arming with hangtime"
__label__NO "gcs:setupwizard: refuse to setup if firmware version mismatch"
__label__NO "fixes #"
__label__NO >
__label__NO >---
__label__NO ">this change is []("
__label__NO >
__label__YES "insindoor neuters navigation robustness/safety checks"
__label__YES "flight: ins: don't allow disabling ins safety checks"
__label__NO "fixes #"
__label__NO >
__label__NO >[](
__label__NO >
__label__YES "chibios uptime with gcs connected is limited to seconds/hr min"
__label__NO chibios:
__label__NO ">``` c #define stms(n) (((((n) - ul) * ul) / ch_frequency) + ul) ```> overflows at (^-)/ (^-)//(ms) = s = approx hr mins>freertos: c #define ticksms(t) ((t) * (porttick_rate_ms)) ```"
__label__NO ">porttick_rate_ms is for our targets (i.e. hz tick frequency) thus overflows at ^- (^-)/(ms) = s = approx hours"
__label__YES ">i am assuming an assert somewhere causes a reboot when we rollover pios_thread_systime because my chibi boards reboot at about this time."
__label__YES "bump stacks for stabilization/vtxconfig on f"
__label__NO "per #."
__label__NO "i flew this for batteries ( minutes or so of airtime) and no boot:undefined/reset so far."
__label__NO "flight: battery: increase stack size"
__label__NO "battery is also very low, and stack analysis confirms usage is increased in this rev."
__label__NO ">connects to #"
__label__YES "brainre does not init bss stuff in ccm-sram properly!"
__label__YES "this has triggered a bug on next with the new manualcontrol stuff, but---- probably triggers lots of undefined behavior elsewhere."
__label__NO ">putting it into samsara."
__label__NO "we will have to hotfix."
__label__YES "even though ill effects have not been observed on samsara, tehy're surely there."
__label__YES "brainfpv in-flight reset"
__label__NO "- seen in version (release version or githash): build - on flight controller (if applicable): brainfpv"
__label__YES ">issue details: my son and i have experienced in-flight resets of the brainfpv fc."
__label__NO "initially i thought that it was a power issue to the fc, but it it happening randomly across different quads."
__label__NO "build was used to see what the initial startup message is after an in-flight reset."
__label__NO "screenshot attached."
__label__NO >![brain-reboot](
__label__YES "brain (og & re) reset in-flight and after crash"
__label__NO "- seen in version (release version or githash): bfeb & fdd - on flight controller (if applicable): og brian, and re"
__label__YES ">issue details: had in-flight reset, and resets after a crash."
__label__NO "i don't believe that the crash was caused by the reset, but it's possible that they were."
__label__YES "the in-flight reset was with an og brain using bfeb."
__label__NO "the crash resets were with an re was using fdd."
__label__NO "indy wdog was displayed on the screen as the reboot reason each time."
__label__YES "these reboots happened somewhere mid-flight (i don't have an accurate time), but powered on for at least min."
__label__YES "motors keep running on failsafe if ""motors spin at neutral is enabled"""
__label__NO "- seen in version (release version or githash): --. - on flight controller (if applicable): brainre (likely affects all targets)"
__label__YES ">issue details: on tx failsafe, the motors keep running at neutral throttle until the arming timeout has expired."
__label__YES "this is unsafe, as the default is s and the motors / escs will likely burn up in a crash."
__label__YES "setting the timeout to make the motors run indefinitely."
__label__NO ">imo this is a bug."
__label__YES "the motors should stop immediately (or after a much shorter period than s) on failsafe."
__label__NO "re: remove ccm section in linker definition"
__label__NO "references #."
__label__NO "confirmed @ a ![]( ![]( ![]("
__label__NO ">edit by mpl: fixes #"
__label__NO "picoc writes to disabled actuators"
__label__YES "this is potentially quite dangerous if you have a motor on a channel you have disabled because you don't want it to spin (e.g. when bench-testing your picoc scripts)."
__label__NO "picoc should have it's own actuator type and should only work on actuators which are assigned to picoc."
__label__YES "esc calibration safety improvement?"
__label__YES "can we send no pwm for a bit to disarm the esc, in case the user didn't listen and still has vbat connected?"
__label__NO "pios_servo: fix on ccd/s ""fake oneshot"" mode"
__label__NO "this was inverted before."
__label__NO "big woops."
__label__YES "gcs: output: improve output calibration"
__label__YES "offset the minimum of the calibration range up a little bit from what we send disarmed."
__label__YES "inputwizard: bias the arming switch threshold"
__label__NO "right now it's the exact middle."
__label__YES "if someone uses a position switch, and follows the instructions, they could end up with a badly configured neutral value."
__label__YES "firmwareiap: stop pwm before reset (when appropriate)"
__label__NO "fixes #, where @ufodziner has a reliable repro."
__label__NO ">supersedes #."
__label__NO ">needs to wait for # / build to be fixed before building artifacts."
__label__NO ">conflicts #"
__label__YES "gcs: esc calibration: send no pulses for .s first"
__label__NO "fixes #."
__label__YES ">if the user doesn't listen and detach the battery and props, this gives the esc a chance to disarm by having no pulses."
__label__NO "no guarantees, etc..."
__label__NO "just slightly safer."
__label__YES "small safety fixes to tx_control."
__label__NO "pipx: don't pass firmwareiap commands through"
__label__YES "the flight board cannot do anything useful with them through a radio link, and they are actually quite dangerous if we're in-flight etc."
__label__NO "fixes (for us)"
__label__YES "actuator: fix helicopter throttle"
__label__YES "smoothcontrol: fix bad bounds checking on integrator timeout."
__label__NO "i have no excuse."
__label__NO :(
__label__NO ">--edit: that said, there's no ui for it and it defaults to off, so it shouldn't affect existing crafts."
__label__YES "actuator: clamp throttle when unarmed"
__label__YES "makes sure that you can't throttle up on a ""servo"" output when disarmed."
__label__NO ">**longstanding** bug but it is much better if fixed."
__label__NO "arm -> timeout -> rearm loop"
__label__NO "- seen in version (release version or githash): samsara - on flight controller (if applicable): brain"
__label__NO ">issue details:"
__label__NO ">i had my caipirinha sitting on the floor last night trying to figure out how to do nav stuff."
__label__YES "it was armed (`switch+throttle`) at zero throttle and i was watching osd."
__label__YES "it would disarm after the normal arm/no throttle timeout and then show me the stats screen, back to normal screen, and then arm again."
__label__NO "in a slow loop (hanging out in each state for a bit)."
__label__YES ">suspicion is a radio blip provided the appearance of a commanded disarm which was enough for the still commanded arm to rearm the aircraft."
__label__YES "transmitter_control: give failsafe yaw control"
__label__NO woops.
__label__YES "stabilization: autotune is an attitude mode"
__label__NO "regressed in # --- the new algorithm requires a complete enumeration of attitude-using stabilizations, from which systemident was missing."
__label__NO "posix: fix pios_thread_period_elapsed"
__label__NO "test was reversed."
__label__YES "smoothcontrol: don't process throttle signal when it's set to zero."
__label__NO "this is just the safety fix from # to merge sooner/speedily."
__label__YES "stabilization: failsafe provisions don't work properly after apparent code refactor."
__label__NO "* seen in version (release version or githash): artifice"
__label__YES ">the stabilization module is in case of a failsafe situation supposed to pull a multirotor into a level position and stop any yaw movement, and make a plane to spiral down slowly."
__label__NO "it does this by overriding the flight modes and seting a specific attitude and yaw rate."
__label__NO "apparently there was some refactoring that shuffled things around, essentially bypassing this."
__label__YES ">the attitude error calculation that controls the leveling happens before these failsafe provisions."
__label__NO "furthermore the rate loop considers a different input variable than what these provisions override."
__label__YES ">the flight modes get overridden as expected, but the desired stabilisation still gets applied, and potentially misinterpreted in case of switching blindly from rate to attitude mode."
__label__NO ">the code in question here:"
__label__NO ">local_attitude_error calculation happens above that."
__label__NO ">the rate loop below uses stabdesired[i] instead of raw_input."
__label__YES "flight: ensure thrust mode is driven in all paths"
__label__NO "this is a safety bug."
__label__YES "flight: telemetry: fix heap overflow on excessive reqs"
__label__YES "no control after arming with logging > on dtfc"
__label__NO "- seen in version (release version or githash): fe - on flight controller (if applicable): dtfc"
__label__NO ">issue details: while testing #, i enabled logging to collect more data."
__label__NO "settings were to log on armed, full bore, ."
__label__YES "after arming i had no throttle control."
__label__YES "motors just idled then stopped after ~sec."
__label__NO "i recycled power, and tried again."
__label__YES "this time the the motors didn't stop for a very long time (>min), and i still had no control."
__label__YES ">i then bench tested (propless) and noticed that after arming there was a cpu warning and the board rebooted."
__label__NO "then i set the logging to , and it appeared to work on the bench."
__label__NO "i did not flight test."
__label__YES "transmitter_control: don't arm on settings change"
__label__YES "before, if you had an arming switch in the armed position while you configured the arming mode, it would immediately arm."
__label__NO "it's a minor safety improvement to prevent this."
__label__NO "sprfe: deal with crappy brushed clones"
__label__YES "make sure pins are nailed low during bootloader, since there's no pulldowns!"
__label__NO "whatta kludge."
__label__YES "even with this one of four motors twitches."
__label__NO ">we should consider something like this globally in the bootloader across all targets."
__label__YES "stabilization: disable hangtime in flipover mode."
__label__YES "quad probably shouldn't react to flipover commands when throttle is zero."
__label__YES "copter: do not enable motors if radio calibration has not been performed or (pre-arm checks have succeeded?)"
__label__YES "in .-rc (and earlier) we send the min-throttle out to the escs as soon as we start-up."
__label__YES "the issue is that this could be an unitialised value and could cause the motors to spin up."
__label__NO "this is the scenario where this can happen: ."
__label__NO "your normal radio range (and thus the range that you've calibrated your escs to) is ~ ."
__label__NO "the top isn't important but the is."
__label__NO .
__label__NO "when you're first connecting your battery (before the erase), your copter is outputting ."
__label__YES "the escs see this low value and say, ""ok the pilot has the throttle low, it's ok for me to initialise""."
__label__YES "once initialised the escs will start up the motors if they see a signal above ."
__label__NO .
__label__NO "you then do the reset of params and this returns the rc_min to ."
__label__NO .
__label__YES "when you reboot the apm by connecting with the mission planner, it starts sending the new default min-throttle value () to the escs the escs see the as a valid throttle and spin the motors (a bit slowly)"
__label__YES "copter: add compass calibration to pre-arm check"
__label__YES "if compass_learn is off (the default) and the user does not perform a live or log based compass calibration we should refuse to arm."
__label__YES "arduplane battery monitoring rtl bug"
__label__NO "please see issue posted at"
__label__YES ">in short, a low battery warning can cause a permanent rtl that can't be overridden."
__label__NO "arducopter seems to function fine but the checks are not the same for arduplane."
__label__YES "copter: add fast-flashing red led when pre-arm checks fail"
__label__YES "copter: battery failsafe shouldn't switch to rtl mode if we're already in rtl"
__label__YES "ppm summ out signal failsave detection"
__label__YES "i want to report that the failsafe handling in the case of a rc-signal loss with a sum signal connection (sumo) does not work correctly"
__label__NO ">graupner and futuba changed in the latest updates of there receivers the failsafe output"
__label__NO ">the following lines are translated from the graupner support ""after a request from flybarless, dji and mikrocopter we shut down the sumo signal in a case of error"""
__label__YES ">the problem at arducopter is following: if the sumo shuts off every channel is on pwm which if you are actually in acro mode generates a very fast uncontrollable spin."
__label__YES "now the rtl kicks in (some time later..."
__label__NO "to late) because the channel too is below and tries to capture the copter again."
__label__YES "at this moment i already lost around m of height, the copter flipped over multiple axis..."
__label__NO "rest in pieces"
__label__YES ">we need a failsafe which triggers on sumo-signal loss and does not interpret the non existent inputs as pwm for all channels, which is really really bad"
__label__YES "copter: ignore flight mode change during /th second thr failsafe interim period and short period afterwards"
__label__YES "when a low throttle value is received (i.e. below ) arducopter temporarily ignores it and instead uses the throttle value it received just before this low value was received."
__label__NO "during this period it does however accept flight mode changes (channel )."
__label__YES "the issue is that some receivers (fr sky) have only simple failsafes that must set all channels to pre-configured values including the flight mode channel."
__label__YES "this means that it's possible for the flight mode to momentarily be changed during the short period (/th of a second) between when the throttle is pulled low and the failsafe is invoked."
__label__YES "after the throttle failsafe is cleared we should also wait another short period of time (again /ths of a second?) to allow the channel to return to it's pre-failsafe value"
__label__YES "copter failsafe : some rc receivers could trig previous mode after failsafe"
__label__YES "following a dev list discussion, i've found that an unwanted mode change can occur when the rc receiver go out of failsafe condition, changing from rtl mode to the mode set on the rc transmitter."
__label__YES ">this is certainly because we don't have a mode inhibit protection during failsafe."
__label__YES ">if the rc receiver, recovering from link lost, change the channel mode just after throttle goes over , then rtl can be cancelled."
__label__NO "this can occur because some receiver do not have a pwm hold capability."
__label__NO "ch will go to pwm = during failsafe and come back to the previous value after link recovery."
__label__YES ">because ch is after ch in the ppm sequence, most receivers will change ch value a few milliseconds after ch, causing an eventually and undesired mode change to stabilize."
__label__YES ">if this bug is confirmed, we should add a mode inhibit protection during failsafes, locking ch mode changes during failsafe, and releasing ch mode changes about milliseconds after failsafe off event."
__label__NO >---
__label__NO ">failsafe testing"
__label__NO ">the only way to fully test failsafes is during flight, because we have now in the code quite a few flight conditions tests changing failsafes behavior."
__label__NO "and we have now different failsafes : radio, gps, gcs and battery for version .."
__label__NO ">that's why we need failsafe simulators, on ch and ."
__label__NO "randy do have that for testing, i feel we should have it at least inside . rc so that all testers can check the whole failsafe functionality."
__label__NO "this could be removed for the release eventually."
__label__YES ">i've never tested the failsafe in the field because powering off the transmitter is dangerous."
__label__NO "needs to much time to get it back on if something goes wrong."
__label__NO ">ch and failsafe triggers will authorize field testing."
__label__YES "copter: disable ch tuning during throttle failsafe"
__label__YES "one user was tuning wpnav_speed with ch tuning knob and lost radio contact."
__label__NO "because the min had been set to zero, the wpnav_speed was reduced to zero so while the copter switched into rtl it would not return because of the zero wpnav speed."
__label__YES "additionally we should check that the wpnav_speed is never set below some reasonable minimum (like meter per second)."
__label__YES "gps: detect whether messages are arriving slowly and resend config"
__label__YES "copter: do not allow arming if any failsafes have triggered"
__label__NO "this includes battery, gcs, radio, gps or fence"
__label__YES "copter: gimbal and motor outputs can conflict for hexa and octa"
__label__NO "it is possible for hexa, y and octa users to set-up the camera gimbal to output on channels that are used for the motors."
__label__YES "this can lead to the motors spinning up when the gimbal is enabled."
__label__NO "discussion is here:"
__label__YES "copter: sudden bad gps position leads to loiter flying off (gpsglitch)"
__label__NO hi,
__label__NO ">i have been working in wireless networking with arducopter."
__label__NO "it so happens that gps works at a carrier frequency of . ghz."
__label__NO "it receives less than nanowatts of power (- dbm)."
__label__YES "any signal stronger than this at nearby frequency on board (even harmonics of a source, which are not unusual) can kill the gps signal entirely (even noise in microwatts)."
__label__YES "i am using a camera on board and it is the killer of gps - when i start the video shoot."
__label__YES ">when this happens during loiter, (gps signal is killed - no power problem, both are powered separately - and i have reproduced and verified the gps loss and camera with spectrum analyzer), the copter loses its position accuracy immediately, and goes haywire."
__label__NO "i have ferrite beaded + cu wrapped but it still happens at odd times."
__label__YES ">this problem cannot be avoided and can lead to heavy losses with expensive on-board equipment."
__label__YES "this must be acknowledge and taken note of it in software (esp. on what action to take 'immediately' when the gps count diminishes suddenly in a matter of seconds - as this is not normal and not seen by all but when it happens it is all gone, as happened in my case)."
__label__NO ">currently, we wait for seconds loss of gps fix."
__label__YES "what i am talking about is an immediate measure when gps signal reduces drastically within blink of an eye even for a second."
__label__NO ">thanks, shyam"
__label__YES "rc dangerous condition - safety feature fault"
__label__YES "dangerous condition craft: multi-rotor firmware version: .. rc"
__label__YES ">situation: proper action - arm the craft and prop spin initiates."
__label__YES ">danger: % full throttle if radio tx is turned off or loss of radio connection the motors/props go to % full throttle."
__label__YES ">results: damage! vehicle becomes an autonomous 'fly away' (or flips?) causing likely physical damage to bi-standers, surroundings and itself."
__label__NO ">interesting side observation upon arming the props - good side feature?"
__label__NO "- when the props are contacted they quickly stop and do not spin anymore."
__label__NO "this is good!"
__label__YES "but, in the above radio loss condition when there is loss of radio signal the remaining props still go to % full throttle."
__label__YES "the vehicle violently flips."
__label__YES ">suggestion: add program logic so when the craft is in pre-op (pre-operation) flight mode and there is a loss of radio connection the apm will either: ."
__label__NO "action - turn off props, sound alert and disarm."
__label__NO "[preferred?] ."
__label__NO "no action - sit with props continuing to spin / stay armed."
__label__YES "copter: parameter to disable fence when gps lost"
__label__YES "the logic behind this is to avoid the copters landing when gps is lost."
__label__YES "this option will of course mean that you have slightly higher chance of fly-aways because if the gps is lost permanently while flying in a manual flight mode, the fence breach will never be triggered."
__label__YES "px: sbus failsafe handling serioulsy broken"
__label__NO "i just replaced my fasst ppm sum receiver with an sbus type (futaba rsb)."
__label__YES "after that, the throttle failsafe recognition is completey messed up - fly-away is guaranteed on rx problems."
__label__NO ">my setup: tx failsafe is configured to a ch value of about ms, all other channels are set to hold."
__label__YES "minimum normal throttle is about ms."
__label__YES "arducopter is configured to recognize anything below as throttle fs."
__label__NO "using this setup, everything works as expected with the ppm sum receiver, including rtl on tx power cuttoff."
__label__NO ">behavior after changing to sbus input: all channels show different min/max pwm values: about -ms instead of -ms."
__label__NO "this is nasty, as a lot of ardupilot functions trigger on ms."
__label__YES ">after switching of the tx (failsafe settings as above) the following values are shown: ch: ms(!!!), all other channels contain the last received value between and ms, including ch which should be well below minimum throttle due to the failsafe setting."
__label__YES "this behavior could easily lead to a fly-away during any in-flight failsafe situation."
__label__YES "a servo connected to ch additionally moves to the correct failsafe position slightly below min throttle, so i expect the receiver to output the correct value for ch."
__label__NO "as a cross-check, i tried a tfr sbus receiver from hk, it shows exactly the same behavior."
__label__NO ">versions: fmu ., io ., arducopter .-rc"
__label__YES "copter: flip bypasses failsafe"
__label__NO "filed on behalf of randy: ."
__label__YES "flip bypasses failsafe"
__label__NO >see:
__label__YES "copter: motors will spin full throttle immediately after arming if flip isn't completed."
__label__NO "after updating my copter and configuring a few new options, such as flip, i went to test fly it."
__label__YES ">immediately upon arming, the copter started flying and took off in a direction, before crashing down on its own."
__label__NO "i did do flight checks (radio calibration, verify modes, verify some fail safes) before."
__label__NO ">i'm still trying to figure out the cause, but testing it with the main new feature i added, channel radio flip, without props made me realize something."
__label__YES ">if you arm the copter, set it to flip, disarm before flip completes, the next time you arm it without removing power will cause the copter to immediately attempt to flip, even with throttle at ."
__label__YES "copter: in auto do not prioritise roll/pitch over throttle so much that we lose too much altitude"
__label__NO "there is an example of this happening here:"
__label__YES ">the vehicle's compass was (likely) more than degrees off from reality which may have contributed to the altitude loss."
__label__NO ">related issue concerning catching bad compass headings is here:"
__label__YES "copter fence: give pilot seconds from the time flight mode is changed before reinvoking rtl or land"
__label__YES "in ac.. when the fence is breached the copter switches to rtl and a new fence is erected m further out."
__label__NO "the problem is that if the rtl fails and the copter continue away from home, the pilot will have very little time to recover before hitting the next fence."
__label__YES "this can lead to the pilot being unable to effectively recover."
__label__NO ">we should probably also make the backup fences further out."
__label__YES "copter: ensure gps failsafe switches land to pilot-controlled-land"
__label__NO "there are two forms of land: ."
__label__NO "pilot controls roll-pitch, autopilot controls altitude ."
__label__YES "autopilot controls roll-pitch and altitude if a gps failsafe occurs while the copter is in the nd land, it should switch to the first."
__label__YES "at the moment this does not happen because although the gps failsafe will call the set_mode(land) function, the set_mode() function ignore the request because it sees the control_mode is already land."
__label__NO "i.e. at the flight mode level, there is no distinction between the two land modes."
__label__YES "copter fence: ensure rtl_alt is never above fence's max alt"
__label__YES "copter: fence triggers immediately after arming"
__label__YES "scenario a) i reconfigured some bits on my copter today and experienced an unexpected spin-up of the motors."
__label__NO "i didn't have telem on with the laptop, but verified in the apm onboard dataflash that, after arming, the mode went into ""rtl""."
__label__NO "i disconnected everything, reconnected and the same issue occurred."
__label__YES "in this case, the vehicle is turned on inside with a poor gps lock that can easily be off by a couple of hundred meters."
__label__NO "radio was % throttle, mode switch to stab."
__label__NO ">scenario b) on apm. hardware some time ago i experienced the same issue in the open field."
__label__NO "this time, the laptop was not used to connect."
__label__YES "after arming the vehicle just took off and was extremely difficult to control."
__label__NO "the experienced pilot managed to land safely though."
__label__NO "another attempt was made with the same result, after which we terminated the tests."
__label__NO ">so these are two different stories with the same result."
__label__YES "gps apparently was measured as good, allowing the motors to arm, but then it was derived that the vehicle is outside the fence."
__label__YES "the motors spin up immediately afterwards and the craft attempts to travel home."
__label__YES ">*\* in both scenarios there's a % working radio control link, but the input do not seem to work."
__label__NO "i attempted to disarm motors for a), but this didn't help."
__label__YES "*\* control in b) remained very poor even using the mode switch, because obviously it switches back into rtl mode immediately after."
__label__NO "*\* both scenarios did not connect the laptop through either usb or radio prior to arming the vehicle."
__label__NO "i think that's key for this issue to occur."
__label__NO ">so i think safety wise, some considerations and improvements need to be made: ."
__label__NO "if i'm not mistaken, the only time when 'home' on the ap is updated is when the gcs is connected."
__label__NO "so bringing an ap to the field with geofence on without connecting the laptop can cause this issue to occur."
__label__NO "(see ""do_set_home"" function implementation)."
__label__NO "there's one check in ""arducopter.pde"" that only sets home when ""ap.home_is_set"" is set."
__label__NO "maybe the routines that set home on the vehicle must be revisited to deal with cases where no planner software is connected prior to flight."
__label__NO .
__label__YES "the code suggests that the vehicle shouldn't arm when the distance is outside the fence."
__label__YES "i'm not % sure, but i think the fence is the reason for the fly-off in b) and the spinup in a)."
__label__NO "this requires therefore investigation if that code works."
__label__NO .
__label__YES "the rtl flight mode overrides stab mode and i have serious doubts about that for safety reasons."
__label__YES "i think rtl behavior in manual flight modes should be explicitly turned on, or allow the user to have a switch available to turn it off when it turns on and the user wants to have % control over the vehicle (nothing works, even if the radio link is ok)."
__label__NO ">i haven't tested everything through yet and i intend to do more testing this afternoon and update this issue afterwards."
__label__YES "pixhawk failover to internal compass can lead to using incorrect offsets"
__label__YES "if the external compass fails (or is disconnected) the internal compass will be used."
__label__NO "unfortunately it will likely use the compass offsets calculated using the external compass."
__label__NO "this same issue can occur for accelerometers and gyros although it is far less likely."
__label__NO ">proposed solution after discussing with tridge is: a) each device driver is enhanced to be able to return a unique device id which is probably created using the bus number + an enum for that type of compass."
__label__NO "b) pxfirmware is enhanced to include a new ioctl which returns the above device id for all pixhawk/px drivers."
__label__NO "c) ardupilot compass drivers for apm, flymaple, bbb also extended to return a device id for each of their supported compasses."
__label__NO "d) new parameters compass_devid, , etc are added which hold the device id used when the compass was calibrated."
__label__NO "these parameters might need to be updated by the mission planner when the compass calibration is performed e) new compass_conf param is added which holds a bitmap of which attached compasses have been calibrated."
__label__NO "the bits are set at run-time by comparing the device id of each detected compass with the compass_devid, (etc) parameter values from eeprom."
__label__NO "if they match the appropriate compass_conf bit is set to """", if they don't match it becomes zero."
__label__NO "f) the pre-arm check checks that all the compass_conf bits are set or that compass-learn is on."
__label__NO "if the bits are not set then it refuses to arm."
__label__NO "g) add simstate devid - to change the devid in sitl to allow better testing of this feature"
__label__YES "copter: catch fly-aways caused by bad compass heading"
__label__YES "when the compass heading is off by more than degrees it flies off in completely the wrong direction at a faster and faster rate."
__label__YES "it's clear to a human reviewing the logs that something is horribly wrong because the desired velocity vs actual velocity diverge a lot."
__label__NO "maybe we can catch this somehow and initiate a failsafe?"
__label__NO ">some example situations:"
__label__YES "copter: add sanity check of baro readings"
__label__NO hy
__label__YES ">today i had a crash with the arducopter v..-rc firmware."
__label__NO "never experienced that before so i was really surprised that this can happen."
__label__NO ">i first flew manually and set the copter to loiter."
__label__NO "then manually again and finally to loiter."
__label__YES "suddenly all the motors almost stopped spinning and the copter came down from m above ground and crashed to the ground."
__label__NO ">the log file can be downloaded from my post:"
__label__YES ">in the log file you can see that the ""throttle out"" suddenly went down to without any reason..."
__label__YES ">edit: probably i found the problem, there was a huge spike from the baralt (jumped from .m to m) so there is probably the problem..."
__label__NO >![unbenannt](
__label__NO >andy
__label__NO "copter: add support for parachutes"
__label__NO "it's a big ask because there are no ready-built parachute deployment systems on the market but we should try to support something like this if the user builds a servo based deployment system:"
__label__NO >
__label__YES "plane: fail safe after a crash"
__label__YES "i had an incident where the plane lost control at the other side of a river so it took about mins to drive around and find it but when the plane lost the rc link it the failsafe kicked in and tried to rtl it ran the motor at full power until it got so hot that it melted the motor mount and allowed the motor to move and cut a gouge into my plane until it got so hot the wires melted and shorted out."
__label__YES ">is it possible to set the failsafe so when it's crashed it won't turn the motor on if its not moving."
__label__YES "like of if its ground speed is zero and the compass is not moving then it won't turn the motor on?"
__label__YES ">or if rtl is enabled by the failsafe and it doesn't move for seconds turn the motor off?"
__label__NO "copter: improvement to arming and gcs audio annoucements."
__label__YES "when you arm a copter, there is a big delay from when the command is initiated to the copter reporting armed."
__label__NO "it would be great if we had a status_text message that indicated that the copter was arming."
__label__YES "a gcs could then give an audible and visual annoucement that the arm command was accepted , then followed a few seonds later with armed (if succesful) ."
__label__NO "currently users are probably holding the arm key longer than necessary as the apm goes through init and baro calib states."
__label__YES ">i also feel this is a safety feature, since the long pause before the arm message always makes me feel a little uneasy"
__label__YES "copter: allow setting safety switch from mavlink command"
__label__YES "some controllers may wish to set the safety switch remotely without the user having to physically get close to the machine and push it."
__label__NO "to support this we need to add a new mavlink message (and code to process the message) to allow this."
__label__NO "copter: respect rc input whle in auto mode"
__label__YES "as a safety feature, any significant stick input during auto , rtl, or guided mode, should be respected by the apm."
__label__YES "copter: guided mode safety"
__label__NO "when using follow-me mode via the tablet, it continually sets guided mode waypoints."
__label__YES "this makes it impossible to recover control of the craft if the tablet remains in follow-me."
__label__NO "can i propose we only enter guided-mode from loiter?"
__label__YES "if the user exits guided/loiter mode, the aircraft will refuse any further guided mode packets."
__label__NO jason
__label__NO "arducopter: lost model beacon"
__label__NO hi,
__label__NO ">i had several fpv crashes into corn field and had to search copter for half an hour or even more..."
__label__NO "so my idea would be to have lost model beacon function for apm with buzzer or pixhawk."
__label__YES "either beacon could be activated after a crash automated (for example minutes after crash detected if model is still powered) or let user assign beacon function to rc or rc."
__label__NO ">btw this could be used for plane with pixhawk too so lost model beacon could be a general fuction for all platforms."
__label__NO ">regards adrian"
__label__YES "copter: debounce auto-armed"
__label__YES "auto-armed goes false the moment that the vehicle is in acro or stabilize and throttle is zero."
__label__NO "we should extend this so that the throttle must be zero for a certain amount of time (i.e .seconds) or for some number of updates from the receiver (perhaps updates)."
__label__NO ">this period of time or number of updates should be longer than the flight-mode switch debouncer."
__label__YES ">this would protect against situations where the user switches from a manual flight mode to an auto flight mode (like rtl) and reduces throttle to zero simultaneously."
__label__NO "feature request - pixhawk sbus failsafe on disconnect"
__label__NO "i've searched the issues and don't think this is a duplicate."
__label__NO "i'm running copter ..b or ..b on a pixhawk and notice that when i disconnect the sbus cable, nothing happens (all the inputs remain the same)."
__label__YES "can someone please add code to the sbus decoder that when a new sbus word is not read in, say, ms, that it defaults to a failsafe option like rtl, land, continue, or engine off."
__label__NO "the failsafe code already exists."
__label__NO "it will be just a few lines of code, right?"
__label__NO "copter: handle take-off from metal surfaces"
__label__YES "if the vehicle takes off from a metal surface the compass heading can be very bad."
__label__YES "this means the attitude control starts with a very bad heading and the position control during take-off can be very bad leading to circling or fly-aways."
__label__NO ">chrisa provided a flight log from a flight that showed a % change in the mag-field length while the vehicle was landed on a metal roof."
__label__NO ">some possible solutions (a combination of these might be necessary): ."
__label__NO "handle it with documentation as one of those edge cases that people need to be careful about when taking off from metal surfaces."
__label__NO "i.e. check the heading using the gcs before take-off."
__label__NO .
__label__NO "add tighter pre-arm checks of the mag field length using an estimated length based on the gps location (i.e. similar to how we lookup declination)."
__label__NO .
__label__NO "add inflight checks of the mag-field length (i.e. if it changes by more than % we warn the user)."
__label__NO .
__label__NO "increase the ekf’s distrust of the compass immediately after take-off ."
__label__YES "reduce the aggressiveness of the lean angle during take-off (this could cause problems taking off in very windy conditions though)"
__label__YES "copter: only turn pixhawk led green when gps pre-arm check has passed"
__label__NO "catch mpuk hardware failures using whoami register"
__label__YES "we have discovered about cases where users have flown with mpuk accelerometer failures during user's flight."
__label__YES "because we are able to read back values from the accelerometer (ie.. they don't go to zero) our current health checks don't immediately catch the problem."
__label__YES "sometimes this leads to a crash and other times the weighting of the accels (especially with the ekf) allows the vehicle to continue it's flight successfully."
__label__YES ">we need to ensure both the user knows of the failure and that dcm, ekf and inertial nav do not use the bad accelerometer."
__label__YES ">note that if the failure happens before take-off the copter pre-arm checks catch the problem (incidentally some users foolhardily turned off the pre-arm check to allow the vehicle to fly but this can't be helped)."
__label__NO "copter: known issues when flying only with tablet"
__label__NO "this is a general purpose issue to capture issues to do with flying with only a tablet ground station as a user interface (i.e. no tx/rx)."
__label__NO ">as more non-trivial issues are found we should probably create separate issues and assign them to the ""ac with tablet"" milestone."
__label__NO ">known issues: ."
__label__YES "the gcs needs to override the rc controls and raise the throttle above zero to initiate a mission."
__label__NO .
__label__YES "the gcs needs to clear the rc overrides to allow the pilot to retake control with the tx/rx."
__label__YES "so for example if you yank the dr radio out of the ground station it should perform an rtl (if gcs_failsafe is enabled) but really a pilot should be able to retake control with the transmitter."
__label__NO "someone should test this!"
__label__NO .
__label__NO "only failback to the tx/rx if the tx/rx is not in failsafe."
__label__NO .
__label__YES "the current throttle failsafe (aka radio failsafe) probably gets confused by the combination of gcs overrides and real tx/rx input."
__label__YES "the two should be separated so that a loss of contact with the gcs leads to a gcs failsafe, a loss of tx/rx triggers a throttle failsafe."
__label__YES "loss of gcs should never lead to a radio failsafe ."
__label__NO "gcs failsafe is disabled by default (because it hasn't been tested thoroughly) ."
__label__NO "do not allow people to fly acro with tablet only (maybe not sport either)"
__label__YES "copter: level battery failsafe"
__label__NO "we discussed this on drones-discuss a while ago."
__label__YES "for various reasons, a level battery failsafe would be useful, where level one rtls or does whatever the user configures and level two lands."
__label__YES "for level one i could imagine e.g. - rtl - fly to closest rally point - fly to specified waypoint (failsafe-point) - start beeping / flashing yellow"
__label__YES ">the main reason is that immediate land is not always desirable, e.g. when operating over water or over forest."
__label__YES "a level battery failsafe would give the operator the possibility to calculate and configure a battery level at which it is still safe to rtl/fly to a failsafe destination (see #) before landing."
__label__NO >drones-discuss:
__label__YES "copter: warn users when inav alt disagrees with baro by >m"
__label__NO "fix radio trim issue."
__label__NO "maybe this can go into . if there's another rc?"
__label__YES "copter: add detailed ekf health reporting to gcs"
__label__YES "we should add a new mavlink message to report the ekf health to the ground station."
__label__NO "field : vertical position field : horizontal position field : d velocity field : compass field : optflow field : rangefinder field ~ field ?"
__label__NO ": reserved for future use"
__label__YES "copter: jump in altitude when ekf becomes available"
__label__YES "if you get up in alt-hold before ekf becomes available, and subsequently ekf becomes available, the copter will very suddenly either fall a bit or climb a bit."
__label__YES "this is very scary and could cause a crash if low."
__label__NO ">i think our ultimate goal for the behavior should be this: - ekf becomes available faster - no gps, only estimating height and attitude, not position and velocity."
__label__YES "- pre-arm check makes it impossible to arm before ekf is ready - really, we should have a pre-arm check for ""home position set."" it doesn't make much sense to allow an rtl (and especially not an rtl with a land) to a home position that was set in-flight."
__label__NO "- we should probably just go into an ""indoor mode"" when you arm with no gps."
__label__YES "play a different buzzer tone, regularly play a warning tone, and disallow non-manual modes until the user lands, disarms, and then arms again."
__label__NO "indoor mode should also be force-able by arming with a different stick gesture."
__label__YES "- in the meantime, we should probably by default disallow arming before a home position is set."
__label__NO "i'll make a separate issue."
__label__NO "plane: param land_disarmdelay set to after reboot"
__label__NO "plane: param land_disarmdelay set to after reboot on latest master"
__label__YES "plane: never trigger fence breach in land_final flight stage."
__label__NO "after a plane has reached the land_final flight stage we should probably assume we are close to the ground."
__label__YES "a fence breach at this time could cause the plane to veer at very low altitude."
__label__NO ">this becomes much more of an issue when considering: -- which only disables the floor during landing."
__label__NO "this is a good thing in case the plane goes haywire while still on approach and is nice and high."
__label__YES "however, once the plane is low enough the fence shouldn't ever breach."
__label__NO "plane: reduce compile warnings"
__label__NO "we have a massive number of compile warnings which make it difficult to see real warnings and errors when compiling."
__label__NO "we should reduce these."
__label__NO "(clone of issue # for copter)"
__label__NO "plane: decrement waypoint index when switching away from auto during landing"
__label__NO "consider the following scenario: - performing autoland - abort the landing by switching from auto to any other flight mode."
__label__YES "lets say we went to stabilize - manually gain altitude, switch back to auto to land again - plane is now flying auto and: - \- has heavily constrained roll angle - \- dropping altitude via glide slope from an unplanned altitude (at wherever you resumed auto) - \- unplanned heading while traveling towards land point while dropping altitude, effectively landing from the wrong direction if we are too low"
__label__NO ">new proposed behavior: when switching away from auto while executing a land mission item, decrement the waypoint index so that when auto is resumed the proper altitude and position is reached before restarting the glide slope."
__label__YES "copter: prevent bad z-vibrations causing rapid climb."
__label__NO "here's latest victim of accz vibrations,"
__label__NO ">please note that imu provided good data."
__label__YES "i know that this is a user/assembly error, but still, there should be some handling of this scenario - after all, we can still detect an altitude gain that contradicts desired altitude/(input)"
__label__YES "copter: only set ""home"" once the hdop of the gps is below a suitable very safe threshold value , for example"
__label__NO "related issues:"
__label__YES "fence altitude limit"
__label__YES "fix broken altitude limiting function when fence is enabled."
__label__NO "copter: add ekf_check_enable param and allow althold instead of just land"
__label__YES "when the ekf or dcm check is triggered (by a variance or heading error going over .) the vehicle switches to land."
__label__YES "like the gps failsafe we should allow switching to althold instead of always landing."
__label__NO "one idea to is add an ekf_check_enable parameter so =disabled, =land, =althold."
__label__YES "it should only switch to althold though when the radio/throttle failsafe is not active."
__label__YES "we don't want the vehicle switching to althold in cases where the pilot doesn't have control of the vehicle because the tx/rx have lost contact."
__label__NO "so in these cases it should still land (because it can't rtl)."
__label__NO ">it might make sense to use the gps failsafe's parameter (fs_gps_enable) or maybe we just need the gcss to handle these two very similar checks."
__label__YES "plane: throttle can unsuppress when we get gps lock"
__label__YES "if in rtl on ground and get late gps lock throttle in plane can unsuppress"
__label__NO "arduplane: fs_gcs option that enables it in auto mode only."
__label__NO "when flying longer missions, fs_gcs may be a requirement."
__label__YES "when approaching/landing in any other mode (usually by rc) , a lost gcs connection may result in dangerous situation."
__label__NO "this new option enables fs_gcs only when flying in auto mode."
__label__YES "arduplane: disable failsafe actions during final approach or land"
__label__YES "if the plane is in final or landing, a battery failsafe, gcs_failsafe, or even radio_fs would easily end in disaster."
__label__NO "-commonly used fs_short and fs_long actions are not suitable then."
__label__NO "copter: minimum arming voltage"
__label__NO "fixes # (but only for copters)"
__label__NO "compass_devid not set for linux boards"
__label__YES "no compass drivers except the px set the compass_devid parameter which means we cannot determine if a compass has been added or removed and force a compass calibration."
__label__NO "ac.: usb-connected fix for auav-x boards"
__label__NO "as discussed on the dev call, we need a workaround to detect the usb is connected for auav-x boards."
__label__NO ">the plan is to add another check into the px hal so check that the usb-pin is high and that the usb device exists."
__label__YES "if either of these is false usb-connected will become false (false is safer because the vehicle will think it's flying), otherwise it will be true."
__label__YES "copter: disable fence temporarily after gps glitch"
__label__NO "not a particularly new piece of information, but i didn't find an issue for this in a cursory search."
__label__YES ">on copter, a gps glitch can cause a fence breach which causes an attempt to rtl with a bad gps."
__label__YES "this causes the copter to lean over hard and hit the nearest tree."
__label__YES ">there's really issues here - rtl should return false under these conditions (when it isn't really sure that it can get us home), and fence should not trigger based on a spurious location."
__label__NO ">there's an example of this issue here: the gps completely cuts out during rtl, but we don't stop trying."
__label__NO "perhaps this is fixed in .?"
__label__YES "copter: allow battery failsafe to become unset after seconds of good voltage"
__label__NO "hello @ll, i have an f hexacopter which is controlled by pixhawk ..."
__label__NO "the copter has also the other dr stuff like telemtry, gps and so on."
__label__NO "i'm using this copter for acrobatic flying and having a lot of fun."
__label__NO ">i've noticed an issue which i try to explain as follows : with my hexa i'm starting from the ground with a fully charged s battery and i'm accelerating to maximum to gain high usually to about -meters the hexa needs about - seconds."
__label__YES "during this process of gaining high the battery seems to lose voltage for a small amount of time which is enough to trigger the failsafe."
__label__NO "the led starts to flash yellow and the buzzer is buzzering around."
__label__YES "after altitude is reached and the acceleration is stopped by pilot the batttery returns to the ""normal"" voltage and will remain there, the buzzer stops buzzering but the led is still flashing yellow."
__label__NO "should it not return to normal state green or blue because the voltage turns back to ok ?"
__label__YES "after flight time of about minutes the battery is empty and it reaches the failsafe voltage for ""real"" but the buzzer is not buzzering to warn the pilot, should it not restart buzzering ?"
__label__YES "plane ver . does not allow disarming with rudder like copter does"
__label__NO "i have brd_safetyenable= and arming_dis_rud= on my plane."
__label__NO ">this is because i wanted my servos to work as soon as the pixhawk is booted, or if it were to crash or reboot in flight."
__label__YES "in other words, i found the arming switch totally pointless when i have arming_dis_rud= which is the real safety for my motor, and to be more precise, i found arduplane less safe than it should be by default since it will still crash my plane if it reboots in flight because all servos are frozen waiting for me to push the arming switch."
__label__NO "so, i'm thankful for brd_safetyenable, but would recommend making this a default if the arming by rudder is set."
__label__YES ">now, my main problem is that after landing, i can't disable arming without a ground station."
__label__YES "my requests would be ) allow throttle down, rudder left to disable arming, like on a copter ) if brd_safetyenable is enabled, change the safety switch into a motor arming switch"
__label__YES ">right now, i can push the safety switch after landing, but this enables the safety, it does not disarm the motors, which is what i would like."
__label__YES "copter: add velocity control timeout in guided mode"
__label__NO "uses same value for timeout as posvel control ( seconds)."
__label__NO "plane: improving ""is_flying"" prediction"
__label__NO "i'd like to hear suggestions on how to make the plane ""is_flying"" flag to be as reliable as possible."
__label__NO "here's what it is today in v.., how can we improve it?"
__label__NO "lets brainstorm!"
__label__NO ">true (we think we are flying) when: airspeedmovement = (airspeed >= ) gpsmovement = (gps.status() == no_gps) || (gps.status() == no_fix) || (gps.ground_speed() >= )"
__label__NO ">while armed: airspeedmovement || gpsmovement while disarmed: airspeedmovement && gpsmovement"
__label__YES ">possible enhancements: - ahrs stall detection integration - ekf/dcm state models may have some insight"
__label__YES ">land mines: - what happens when you have spotty gps?"
__label__NO "- what happens before/after you land and it's _very_ windy fooling your airspeed?"
__label__YES ">on my own fork i'm using the airspeed value of m/s since m/s can easily happen with an uncalibrated airspeed."
__label__NO "it can happen at too, just not very often."
__label__NO >discuss!
__label__YES "ac.: opticalflow failure doesn't trigger land"
__label__YES "roberton tested optical flow with ac. and we discovered that when the ekf stopped using the optical flow sensor and switched to constposmode, the vehicle code didn't switch to land mode for some reason."
__label__YES "support for stall avoidance in apm::plane while in manual mode"
__label__YES "i had a chat with tridge, and i understand that if you fly in fbwa, the new apm::plane code can do stall avoidance for you."
__label__NO "my suggestion was to allow this code to run in a mode based off manual, maybe a new mode since stabilize does get in the way of manual flying a bit."
__label__YES ">basically the new nostall mode would work just like manual until the flight computer thinks that the airframe is about to stall."
__label__YES "> scenario i can think of a) flying level if the motor is off and altitude allows, it would just lower the nose and allow the rest of the input."
__label__NO "ideally it would output something on the osd to say it did that."
__label__YES "if motor is on, add throttle and/or lower the nose."
__label__YES "if the motor is off and altitude is low, turn the motor on if any, or lower the nose."
__label__YES "(yes, you have to worry about an intentional stall to land, if there is no good source of altitude to know you're less than m over the ground, maybe the pilot would have to switch back to manual to be able to stall for landing)"
__label__YES ">b) commanding a turn a) if high enough, allow the turn but lower the nose and/or power up (if motor is already running) b) if not high enough, decrease the bank angle to avoid a tip stall and spin to the ground."
__label__NO ">why would this be useful?"
__label__YES "i fly a multiplex cularis, i love flying it the normal way (manual) but it will tip stall easily depending on how loaded it is with weight and when i do a manual landing with base to final turn, it's just hard to know my airspeed and how close i am to stalling and crashing."
__label__NO example:
__label__NO ">thanks :)"
__label__YES "plane: is_flying makeover and improved crash detect"
__label__NO "the is_flying flag is made to be much more robust."
__label__YES "also added crash detection - is_flying is populated at hz instead of hz - crash detection is redone from scratch taking into account all auto flights (only works in auto) - added storing a small ""low-resolution"" history of the primary imu for run-time statistical purposes - added math funcions average, variance, and standard deviation - df log is_crashed (stat-crash) and is_motionless (stat-still) - new param ""crash_detect"" which is a bitmask for a actions upon a crash."
__label__YES "only disarm is implemented here but others are easy to add such as turn on the horn or blinky emergency lights - is_flying is not populated the first seconds after a boot (may have to be re-thought for linux builds), - much better handling of gps loss when considering is_flying state"
__label__YES "plane: abort land using continue_and_change_alt"
__label__NO "depends on which depends on"
__label__NO ">i'll rebase this as those get merged."
__label__YES ">when aborting a landing via mode change, check if nav_continue_and_change_alt is after land."
__label__NO "if so, go ahead and execute it."
__label__NO "else, normal behavior of checking for do_land_start else decrement mission index."
__label__YES "this allows for climbing out of an aborted landing instead of turning right away."
__label__YES "copter-.-dev: gps failsafe triggers too quickly"
__label__YES "the gps failsafe in copter-.-dev (i.e. not released) triggers a land much more quickly than copter-.."
__label__NO "copter: add support for ads-b"
__label__NO "- duplicate support as plane except descending doesn't work yet, needs some minor todo work."
__label__NO "this is added as a framework for others to work from."
__label__NO "- not tested at all (but it compiles!), pretty much a copy/paste from plane which was tested well."
__label__YES "ap_arming: allow arming without the hardware safety switch having been pressed"
__label__YES "added an enum to the check type that allows for arming without the hardware switch having been enabled"
__label__YES "display ublox jamming value in mission planner"
__label__NO "the ublox does provide a jamming parameter which generally returns a number between ~ to indicate the level of jamming."
__label__NO "~ = minimal jamming."
__label__NO "= completely jammed."
__label__YES "making this parameter available might help some users determine they have equipment on their vehicles that is interfering with the gps so they can correct it."
__label__YES "plane: parachute support under loss of control and during missions"
__label__YES "add enable deployment from a mission command stop the motor as part of the deployment sequence"
__label__NO "add ads-b support"
__label__NO "it's finally here!"
__label__NO "ads-b support for ardupilot."
__label__NO "this pr will parse mavlink packets with ads-b data and create a list of aircraft."
__label__NO "this is a common driver but platform hooks are only added to plane."
__label__NO "we can add copter as soon as we get this infrastructure in place."
__label__NO ">this allows for an ads-b receiver on the aircraft feed data about other aircraft to ardupilot."
__label__YES "the aircraft can then make a decision as to how to avoid it."
__label__NO "the ads-b mavlink data coming in from one port is forwarded to all mavlink ports so if you have a gcs connected it should get the same traffic."
__label__YES ">two new params: adsb_enable, set to to enable parsing packets and looking for threats adsb_behavior, enum with threat avoidance behaviors of none, loiter (forever), or loiter_and_descend."
__label__NO "currently this is fixed at m/s."
__label__NO ">this includes a new ads-b simulation component where you can have aircraft flying at you."
__label__NO joy!
__label__NO "to enable this you must update your pymavlink: sudo pip install --upgrade pymavlink mavproxy"
__label__NO ">and start sitl via: ""sim_vehicle.sh -a --adsb"""
__label__NO ">todo: - add copter support - add more complex behavior enums and implement them in the given platforms - rename behaviors, or move them to platforms, for platform terminology's sake."
__label__YES "- add more params to allow for customized behaviors (ie, don't use a fixed m/s loiter descent into the ground) - add visualizations to gcs - add smarter threat detection."
__label__NO "currently it uses a hard coded radius (m) and ignores altitude for proof-of-concept and testing purposes."
__label__YES "arduplane: snooze lidar"
__label__YES "arduplane: snooze lidar - allow ability to snooze lidar by powering it down when not landing by using a new value of rngfnd_landing=."
__label__NO "this will require a stop_pin to be defined."
__label__NO "- px only"
__label__NO "gps: verify ublox settings"
__label__NO "the ublox driver will now continuously poll for the settings from the gps and correct any that are found to be in correct."
__label__YES "this status is then reported to the arming library as an additional arming check, allowing the user to be sure that the gps is correctly configured before using it."
__label__YES "if a user has a gps configured that is not present they will fail the arming checks until after they have disabled the second gps."
__label__NO "the time interval is currently . seconds between checks until the whole gps has been configured then it drops to seconds between checks."
__label__NO "> new parameters were introduced as well: -gps_auto_config: will not request any configuration packets to attempt to change them."
__label__NO "(if the packet is recieved then a update will be sent to it, but in testing this scenario never occured."
__label__NO "this is set to or to change the setting."
__label__NO "(defaults to enabling auto config) -gps_gnss_mode: behaves the same way as gps_gnss_mode but only applies to the second gps."
__label__NO ">other side effects: the ublox firmware and hardware versions are sent as a status text (and thus logged) when the driver first loads (and gets a successful response from the gps)."
__label__NO "this should help a lot when debugging user logs."
__label__NO ">tightened the hz brown out detector to be faster ( seconds which still seems large), and caused this triggering to be a broadcast message."
__label__NO "(again should help with logs)."
__label__NO ">this has been bench tested against a mt, neo-, and a lea- (that has timing firmware on it)."
__label__NO "i still need to flight test and find a lea- that has stock firmware to test against."
__label__NO "this is posted now for feedback, i should be able to have flight tested test in a couple of days."
__label__NO ">known weakpoints:"
__label__NO ">-currently expects you to have gps's capable of raw logging if that is enabled in a multi gps setup."
__label__NO "i'll address this later in a separate pr, as there are other issues associated with multi gps raw logging."
__label__NO "(i have to recommend against doing this right now as unless you are using a series and a earlier series the messages will be very difficult to distinguish)."
__label__NO "-i need someone to test against a navio or a bh as i don't have that hardware, but i did have to make a modification to the gps setup for those platforms."
__label__NO "add arming_minvolt"
__label__YES "add a minimum battery voltage check for arming, default to for no check"
__label__YES "copter: gcs failsafe should trigger if in guided mode and loss of telemetry"
__label__YES "currently the gcs failsafe will trigger an rtl if the user is flying using the virtual sticks."
__label__YES "theoretically if the user is only using guided mode they might not be using the virtual sticks so the rtl would not trigger."
__label__NO "in practice this may not be a problem because the gcs might be overriding the rc controls even while in guided mode because it needs to raise the throttle above zero."
__label__YES "copter: arming from gcs does not check flight mode"
__label__YES "it is currently possible using a ground station (like mission planner) to switch the vehicle to rtl and then arm the vehicle."
__label__YES "we don't allow arming in rtl mode from the transmitter and shouldn't allow it from the gcs either."
__label__YES "copter: gcs failsafe should check if vehicle is landed"
__label__YES "if landed the vehicle should immediately disarm instead of rtling."
__label__YES "copter: landing detector false-positive when slowing down in poshold mode"
__label__YES "we've had one incident of a false-positive on the landing-detector with ac.."
__label__YES "the cause was a slight motor imbalance combined with a slow-down from fast-forward flight (m/s) in poshold mode."
__label__YES "it seems during the slow-down that the propellers created extra lift which allowed the motors to go to near zero for an extended period (>sec)."
__label__NO ">![motorhitsbottom]( ![landingcheckanalysis]("
__label__YES "navekf: check baro health before consuming"
__label__YES "it's possible (at least during a baro hardware failure) for a barometer to return nan."
__label__NO "i think this led to the ekf handing back control to dcm."
__label__NO 
__label__YES "helicopter arming with non-zero throttle"
__label__NO "in relation to this change for multirotors:"
__label__NO >
__label__NO ">we need something like this for helicpters, but slightly different."
__label__YES "for helicopters, it's more important to check that the esc throttle output is at idle or lower."
__label__NO "i think the way this is written now, it's possible that you could remotely arm a helicopter with the ch input set to start the rotor."
__label__YES "this should not be allowed, starting the motor should always be a separate event."
__label__NO "gps: ublox: do not allow saving of the config while armed"
__label__YES "config should never be saved while the craft is armed, as on some gps's this can take an extremely long time without any updates in position, which is not something that should be done in flight."
__label__YES "plane: parachute should turn off the motor only and not disarm the ap"
__label__NO "#### issue details"
__label__NO ">it has been years we land only using parachutes in our fixed wings plane, we were and still using the manual parachute trigger."
__label__YES "we were happy that this trigger is via pixhawk lately but we found due to our flights and parachute landing that the pixhawk should not disarm the ap but only turn off the motor."
__label__YES "because today we have triggered the parachute, the door has opened but the parachute didn't pull out for a certain reason."
__label__YES "if we were using the parachute via pixhawk, we would have crashed the plane, the best scenario is to make the parachute function to turn off the motor only and if for a reason the parachute didn't pull out, the pilot will have a last chance to switch the fbwa and land the plane on its belly."
__label__NO "#### version"
__label__NO ">_what version was the issue encountered with_ #### platform"
__label__NO ">arduplane #### airframe type"
__label__NO ">fixed wings plane #### hardware type"
__label__NO ">pixhawk #### logs"
__label__NO ">_please provide a link to any relevant logs that show the issue_"
__label__NO "tradheli: throw mode"
__label__NO "i was testing master for tradheli and noticed that throw mode appears for tradheli."
__label__NO "might not be such a good idea to have this mode available for tradheli."
__label__NO "plane: if setting a mixer fails then clear the last crc so that it will be attempted again"
__label__NO "the bug was introduced by the changes to not reupload the mixer if it hasn't changed."
__label__YES "prevent motor movement while programming"
__label__YES "when uploading a firmware image to the pxfmu (the main cpu) the motors have occasionally spun up on me using a pixhawk."
__label__NO "i have brd_safetyenable= so the pxio is always armed and i suspect that is allowing random data from the pxfmu during it's firmware upload to trigger my escs."
__label__NO "admittedly i haven't had this problem in a while but used to in the past a lot."
__label__YES "this patch will ensure it is impossible by setting the safety button to disarmed just before a mavlink-triggered reboot so that pxio is disarmed."
__label__NO ">this won't help when the pxio is being bootloaded/upgraded, but that is a much rarer event."
__label__YES "ap_battmonitor: added support to estimate initial battery capacity"
__label__YES "this pr comes from what we have discussed in # for this enhancement three new parameters have been added (they are duplicated for batt): - **batt_capac_est:** whether to estimate the initial battery capacity at start up (some %) or not (assume %)."
__label__NO "when enabled this parameter represents the number of cells in the battery pack."
__label__NO "- **batt_est_gain:** gain of the curve that represent the relation voltage/remaining_capacity(%) of a single cell battery: capacity = voltage*gain + offset."
__label__NO "default value is valid for most common lipo batteries."
__label__NO "- **batt_est_offset:** offset of the curve that represent the relation voltage/remaining_capacity(%) of a single cell battery: capacity = voltage*gain + offset."
__label__NO "default value is valid for most common lipo batteries."
__label__NO ">estimation is disabled by default so right after initialization battery capacity will be % (as always)."
__label__NO "however when enabled board initialize capacity to and waits until voltage readings are stable."
__label__NO "once voltage is stable it will set initial capacity according to the formula discussed in # ."
__label__NO "this formula can be configured through the parameters for your specific batteries."
__label__NO ">this is working great with my pixhawk and a dr power module."
__label__NO "i hope you guys like it."
__label__YES "copter: ac_avoid library to stop at circular fence"
__label__YES "this is a pr from dan ricketts (with design input from leonard and implementation input from randy) which causes the vehicle to stop at the circular fence."
__label__YES "gcs_mavlink: fix race condition when recieving last waypoint"
__label__YES "this only shows up when the waypoint is about to time out, as when the aircraft isn't in receiving mode we will nack the last packet if it gets uploaded, but gcs will drop this as it is not uncommon to see a nack on upload, and lack of prompting by the autopilot on the last items will indicate success."
__label__NO ">the removal of the waypoint_request_i <= waypoint_request_last is fine, as when we increment waypoint_request_i we already check that against the last request and exit the revceiving mode."
__label__YES ">tagged as safety critical as this can convince a gcs that it succeeded on uploading the last waypoint when it failed to, which could surprise users."
__label__NO "(this is a rare occurrence)."
__label__YES "copter: add pre-arm check for rally points outside of fence"
__label__YES "if a rally point is setup outside the circular or polygon fence, we still try and use it."
__label__YES ">way to reproduce: - enable the circular and/or polygon fence (set fence_enable = ) - create a rally point at least m outside the fence - move close to the fence and trigger rtl"
__label__YES ">what happens: - the vehicle will attempt to fly to the rally point that is outside the fence."
__label__NO "because it's already in rtl, the fence breach will not have any effect initially _but_ if the rally point is more than m (see ac_fence.h's ac_fence_give_up_distance) the vehicle will switch to land before it reaches the rally point."
__label__YES ">what should happen: - we should trigger a pre-arm check if the fence is enabled and rally points are created outside the fence."
__label__YES "- when an rtl is triggered, maybe we should check if the return location is within the fence or not."
__label__NO "if it's not we should perhaps return to home?"
__label__YES "this is debatable because it's possible the vehicle has taken-off from a boat so ""home"" is not a valid landing location."
__label__NO "maybe we should just stick with the pre-arm check."
__label__YES "plane: motor spins while booting in avr chips."
__label__NO "hello everyone,"
__label__YES ">the current version of the util.h file in the avr-stable release branch can cause serious personal injury."
__label__YES "if you are using arm/disarm options and you connect your battery to apm / apm, it will turn on your engine if your tx rc radio is off."
__label__NO "please, upgrade official avr branch with this patch."
__label__NO ">regards from spain, dario."
__label__NO "copter: add support for polygon fences"
__label__YES "copter: speed set during mission affects rtl"
__label__YES "this is a safety risk."
__label__YES "imagine this: you have a mission to circle around a windmill km at sea, ap flies there, do_set_speed sets speed to m/s for the photos - then a failsafe kicks in, or you need it due to loss of video - now the copter is returning home, at m/s."
__label__YES ">mission speed should only be enforced during mission, for rtl and other operations, the configured speed should be used."
__label__YES "quadplane bug: qmotors activate with hardware safety switch disarmed."
__label__NO "#### issue details"
__label__YES ">if i press the hardware safety switch so that its light is flashing, and i see ""safe"" on the mp hud, then turn off the rc tx, the qmotors fire up and attempt an rtl."
__label__YES "if i first disarm using left rudder (manual mode required, see #), then disarm using the hardware switch, then the motors will not engage when failsafe is activated."
__label__YES ">the hardware switch should be a master disarm switch which does not require rudder disarming."
__label__NO "#### version"
__label__NO ">. #### platform"
__label__NO ">[ x ] qplane #### airframe type"
__label__NO ">dr aero #### hardware type"
__label__NO ">pixhawk #### logs"
__label__NO >
__label__YES "plane: px mixer fails to program reliably leading to no working overrides"
__label__NO "#### issue details"
__label__YES ">px mixer appears to be working, but the override is not correctly configured for some reason, which leads to the overrides not working."
__label__YES "this in turn leads to an inability to override the aircraft for safety of flight reasons or otherwise."
__label__NO "i've sen this twice now out of or so flights."
__label__NO "and again the message of pxio override enabled came out, but that is simply a statustext from the fmu and is meaningless."
__label__YES "i _strongly_ move that message is either removed or only be emitted under positive confirmation that override is working, instead of just monitoring and deciding that the pwm is in the correct spot to enable overrides."
__label__YES "this current behavior has caused multiple users to be extremely confused about the state of the overrides."
__label__NO "#### version"
__label__NO ">cdad #### platform"
__label__NO ">[ ] all [ ] antennatracker [ ] copter [ x ] plane [ ] rover #### hardware type"
__label__NO ">pixhawk #### logs"
__label__NO ">not yet uploaded (need to make a smaller one, rather then uploading something near mb)"
__label__YES "plane: motor spins when disarmed"
__label__NO "#### issue details"
__label__YES ">when the plane is disarmed and on the ground the user is able to spin up the motor by simply reversing the throttle in mission planner."
__label__NO "this has also been confirmed in sitl."
__label__NO "#### version"
__label__NO ">.. #### platform"
__label__NO ">[ ] all [ ] antennatracker [ ] copter [x] plane [ ] rover #### airframe type"
__label__NO ">fixed wing #### hardware type"
__label__NO ">pixhawk #### logs"
__label__NO >
__label__YES "copter: support ap_gps arming checks"
__label__NO "#### issue details"
__label__NO ">the u-blox driver audits that it has fully programmed the gps settings which we expect and need."
__label__NO "the arming checks have been in plane for quite a while and well proven there:"
__label__NO ">it would be really nice to fit this in the . release."
__label__NO "i thought this had made it into copter a long time ago, but this provides a much better audit of having the gps settings that were requested, and ensuring that the performance matches the assumptions that the rest of the system are making"
__label__NO ">i'm not sure if it's to late to get this in @rmackay but it would be really nice if at all possible."
__label__NO "#### platform"
__label__NO ">[ ] all [ ] antennatracker [ x ] copter [ ] plane [ ] rover"
__label__YES "safety switch is broken in master"
__label__NO "#### issue details"
__label__YES ">safety switch won't work by physically pushing it on master."
__label__NO "#### version"
__label__NO ">ae #### platform"
__label__NO ">[ x ] all [ ] antennatracker [ ] copter [ ] plane [ ] rover #### airframe type"
__label__NO ">tested on plane, assuming applies to all vehicles."
__label__YES "plane: add protection against bad gps positions"
__label__YES "i had a good plane mission going and all of a sudden the plane began roller coastering."
__label__NO "i got it down safely, checked the logs, and found that hdrop value had gone from . to . and i satellite count from to ."
__label__NO "anything you can do to help in this situation?"
__label__YES "ap_airspeed: failed sensor data propagates through all control loops"
__label__NO "#### issue details first comment: i hope to be proven wrong on this."
__label__YES ">we can have a failed sensor for a variety of reasons, in this case we are considering a failed sensor to be anytime ap_airspeed::healthy() would return false (no valid data from the sensor within the last . seconds)."
__label__NO "we use this when we emit the airspeed healthy flag to the system."
__label__NO "however that doesn't stop us from using the data after that."
__label__YES ">the first failure is that when we compute the raw airspeed value (this is what you see logged for airspeed data) we ask ap_airspeed::get_pressure() for a pressure value."
__label__YES "if we don't succeed in getting a differential pressure we mark ourselves as not healthy."
__label__YES "however we return , which since the sensor health isn't checked within read() allows the value to propagate through the system."
__label__NO "we then add our offsets, multiply by the ratio and take the square root for the _raw_airspeed value."
__label__NO "this will always result in a fixed value."
__label__NO "in my example an offset of around and a ratio of . leads to a fixed airspeed of . being reported)."
__label__NO ">we then integrate this data into the _airspeed estimate."
__label__YES "the problem is that if we take a library like tecs it simply calls ap_ahrs::airspeed_estimate() which just checks that the sensor is enabled."
__label__NO "it then fetches the current airspeed (which will be the . value after it makes it through the filter) and uses it."
__label__YES "this means that a failed sensor will perpetually be read at this value, and your control loops will all be based around a fixed estimate, and not allow any of the fallback code to run (such as tecs has some code that attempts to manage this scenario)."
__label__NO ">i'd **strongly** like to be wrong about this, so please double check my audit of the code involved with this."
__label__NO "if you have any log data that returns . as the airspeed temperature, and you had an airspeed sensor enabled you would have been affected by this."
__label__NO ">#### version master"
__label__NO ">#### platform [ ] all [ ] antennatracker [ ] copter [ x ] plane [ ] rover"
__label__YES "gps glitches when using two gps modules"
__label__YES "a flight log with two active gps modules shows gps glitches in minutes of flight, while gps conditions were ok (hdop<.)."
__label__NO ">flight log is available here:"
__label__NO ">more information:"
__label__YES "plane v..: stall recovery takes too long to recover a positive attitude and regain altitude"
__label__NO "@tridge , i wanted to thank you for improving ap so that rtl could be more reliable as a ""oh crap"" switch to recover from unexpected situations/pilot loss of control."
__label__YES "unfortunately it almost failed me a couple of days ago by losing a lot of altitude before finally recovering."
__label__YES ">video to follow along: i used auto takeoff and that worked ok (sec) when i switched to fbwa i had an issue with my controller commanding too much pitch down and while i was trying to figure out what was wrong, i realized i was too low and losing altitude fast, so i switched to manu, managed to over correct, stall, and then switch to rtl."
__label__NO "::, altitude is m airspeed is kph (too low)."
__label__YES ":: airplane pitches down to - degrees likely due to the stall, airspeed is back to kph, way above flying speed, altitude is m now is where i'm not very happy with rtl."
__label__YES ":: plane is still pitched down, degrees, still losing altitude and on top of that it decides to turn back down to the rtl point when recovering altitude should be # priority (rtl point is m, altitude is m) :: plane still pitched down degrees, airspeed is now kph going towards a crash, altitude is now m : : attitude is finally brought back to towards nose up, altitude is a mere m, it's only by luck that the plane didn't crash after that rtl does the right thing."
__label__YES ">my problem is that rtl lost over m of altitude when it could have recovered a positive rate of climb almost instantly from offset :."
__label__YES "sure, only seconds went by, but in those seconds, m of altitude were lost and the plane could have crashed into a tree, or the ground if it had started just a bit lower"
__label__YES ">plane is a bixler , with flaps (not controlled by ap)."
__label__NO "flaps were up at the time this happened."
__label__NO "bin from the flight:"
__label__NO ">channels: o ch : right aileron a o ch : elevator e o ch : throttle t o ch : rudder r o ch : left aileron o ch : r flap o ch : l flap o ch: apm mode"
__label__YES "copter: add prearm check for home position set"
__label__YES "we probably shouldn't be allowing an arm at all if home position is not set."
__label__YES "rtl cannot work and there isn't really enough indication of that."
__label__NO "plane: add aoa (angle of attack) sensor"
__label__YES "(moved from dd thread by jason franciosa) if we could develop a cost effective aoa sensor that is reliable i think this is the ultimate solution for stall prevention."
__label__YES "although, i don't think it completely rules out the need for stall detection and recovery as nothing is % bullet proof"
__label__NO "all: rc_override_active not properly managed"
__label__NO "so current top of tree (@abfe) shows an interesting problem."
__label__NO "i don't see any place in plane that is setting rc_override_active."
__label__YES "this is probably a mistake because it means that it won't do the failsafe action if it loses gcs heartbeat."
__label__NO ">~/development/drone/ardupilot$ grep -r ""rc_override_active ="" \* apmrover/apmrover.pde:static bool rc_override_active = false; apmrover/system.pde: rc_override_active = hal.rcin->set_overrides(rc_override, ); arducopter/gcs_mavlink.pde: ap.rc_override_active = true; arducopter/gcs_mavlink.pde~: ap.rc_override_active = true;"
__label__YES "plane: crash, partial data freeze, during unusual autotune procedure."
__label__NO "forum user posted this log:"
__label__NO ">ap .. in autotune, using rudder input while flying otherwise ok, even rtl."
__label__YES "- he gets a throttle fs,(ap switches to circle) , rcout is frozen, altitude and other data looks very strange too, ~sec later the plane crashed."
__label__YES "- and suddenly updated altitude from to . m"
__label__YES "copter: sonar error detection"
__label__YES "the copter will fly away if something wrong with your sonar."
__label__NO "for example, disconnect cable."
__label__NO "jammed sound path way."
__label__YES ">when something wrong with your sonar, keep report a distance like cm."
__label__YES "the copter will keep climb in loiter/alt mode, because it think it keep cm above ground."
__label__YES "at the same time, the baro alt is growing, but apm just ignore it because the sonar alt was trusted."
__label__YES "sonar should be disabled when baro alt shows climb more thanm, but sonar alt keep still."
__label__YES "upgrading to ap . seems to cut the throttle output a split second during init and triggers an error on castle escs."
__label__NO "initially reported here i did more testing with a servo controller and talked to a castle engineer."
__label__YES "the beep code i started getting on different planes after i upgraded them to . (one with pixhawk, one with pixfalcon), means (as quoted by castle) ""what is happening is at some point after the esc is armed the flight controller is not sending a throttle signal - even if for a split second""."
__label__NO "i've used a servo tester to verify that behaviour: ) boot the esc with the servo tester plugged in at any pwm value ) esc arms ) unplug servo tester ) plug servo tester back in ) esc complains about loss of signal with beep code that never ends until power is reset ) resetting power brings me back to step #"
__label__NO ">the only way to make things work is to boot the pixhawk with loss of signal, then it boots in circle mode and sends throttle value to the esc from the beginning without dropping the signal then turn the lrs radio on and start feeding data to the pixhawk, it gets out of circle and back to manu, then things work good until the fc is rebooted."
__label__NO "i did not have this problem with ap . or ., so i'm pretty certain something in the code changed that causes a very quick drop of signal on ch."
__label__NO "i also checked that booting the esc with a pwm value as low as is not a problem, so it's not a throttle failsafe or initial throttle value issue from the lrs system like i originally thought."
__label__YES "log if gps updates are slow"
__label__YES "during copter-. beta testing one users's gps started updating slowly (.hz instead of hz) about seconds before it lost lock completely."
__label__NO ">it would have been good if we could log the slow update rate in the dataflash logs as an error to ease support - it took me a while to notice the slow update rate."
__label__YES ">we should probably also have reported the gps as unhealthy to the ground station somehow so that the user was aware there was a problem."
__label__YES "should auto activate if certain conditions are not met?"
__label__YES "(like gyros not calibrated)"
__label__NO "ap .rc."
__label__YES "so, i'll start by saying that ultimately the plane crash is my fault and responsibility, however ap could potentially have refused to activate auto if something critical like gyros weren't working."
__label__NO ">what happened: ) my bixler that had repeated problems with the cameras making the gps signal marginal and prevented arming ) when on the field, i used tower, and sadly due to it didn't give me any messages from mavlink, so it left me in the dark about the real reason."
__label__NO "sadly, i stupidly guessed that arming was for the th time, a gps issue, and overrode it (i did not need gps for the flight i was going to make)"
__label__NO ">yes, i'm upset that tower hid critical information i needed to have, and will look for another android ground station that does not do this (should there be one)."
__label__NO "andropilot does the right thing, but ) seems like a dead project sadly, ) does not seem to plot my aircraft route on the screen, which tower does do."
__label__YES ">i then activated auto and although the gyros were not working (didn't know this of course), auto did activate, and promptly took off, tipped over to the side, and crashed at full power into the ground, being unable to level the plane."
__label__YES ">should auto refuse to activate if some critical things like gyro aren't working?"
__label__NO ">messages: -- ::.: msg {timeus : , message : airspeed calibration started} -- ::.: msg {timeus : , message : ground start complete} -- ::.: msg {timeus : , message : arduplane v..beta (bd)} -- ::.: msg {timeus : , message : px: da nuttx: aba} -- ::.: msg {timeus : , message : pxv } -- ::.: msg {timeus : , message : new mission} -- ::.: msg {timeus : , message : airspeed sensor calibrated} -- ::.: msg {timeus : , message : gps : detected as u-blox at baud} -- ::.: msg {timeus : , message : ekf imu initial yaw alignment complete} -- ::.: msg {timeus : , message : ekf imu initial yaw alignment complete} -- ::.: msg {timeus : , message : init home} -- ::.: msg {timeus : , message : ekf imu tilt alignment complete} -- ::.: msg {timeus : , message : ekf imu tilt alignment complete} -- ::.: msg {timeus : , message : u-blox hw: sw: . ()} -- ::.: msg {timeus : , message : ekf imu origin set to gps} -- ::.: msg {timeus : , message : ekf imu origin set to gps} -- ::.: msg {timeus : , message : ekf imu is using gps} -- ::.: msg {timeus : , message : ekf imu is using gps} -- ::.: msg {timeus : , message : prearm: gyros not calibrated} -- ::.: msg {timeus : , message : prearm: gyros not calibrated} -- ::.: msg {timeus : , message : prearm: gyros not calibrated} -- ::.: msg {timeus : , message : prearm: gyros not calibrated} -- ::.: msg {timeus : , message : prearm: gyros not calibrated} -- ::.: msg {timeus : , message : prearm: gyros not calibrated} -- ::.: msg {timeus : , message : prearm: gyros not calibrated} -- ::.: msg {timeus : , message : throttle armed} -- ::.: msg {timeus : , message : executing nav command id #} -- ::.: msg {timeus : , message : resetting previous waypoint} -- ::.: msg {timeus : , message : armed auto, xaccel = . m/s/s, waiting . sec} -- ::.: msg {timeus : , message : triggered auto."
__label__NO "gps speed = .} -- ::.: msg {timeus : , message : holding course at .m/s (.)}"
__label__NO ">it may be that the answer is ""no"", if so feel free to close this."
__label__NO [.bin.gz](
__label__YES "plane: landing aborts will fly away with certain missions"
__label__YES "#### issue details plane will fly away (and climb) forever if you have a mission that looks like the following and issue a mavlink mav_cmd_do_go_around: ."
__label__NO "some number of waypoints (doesn't really matter, i didn't test without any waypoints, but i suspect it will still happen) ."
__label__NO "do_land_start ."
__label__NO land
__label__NO ">this behaviour happens regardless of if landing type is deepstall, or glide slope."
__label__NO "the above mission makes % sense for deepstall, it is a bit illogical for normal glide slope landing but still should never result in a fly away."
__label__NO ">i'm investigating this locally now, and will hopefully find the error/solution shortly, but i'm opening the issue as a blocker for . (and safety note)"
__label__NO ">#### version master"
__label__NO ">#### platform [ ] all [ ] antennatracker [ ] copter [ x ] plane [ ] rover"
__label__YES "plane: fix a fly away when aborting a landing"
__label__YES "do_land_start -> land waypoints in sequence would cause a perpetual abort state due to the sticky nature of the abort states."
__label__NO "if we restart a landing on purpose while doing an abort, then we can move onto trying to land again."
__label__NO ">this closes #"
__label__YES "plane: if overrides are enabled check mixer health on arming"
__label__YES "#### issue details if overrides are enabled then the mixer passing should be a preflight arming check, since we can fetch and assess the mixers status."
__label__NO ">#### platform [ ] all [ ] antennatracker [ ] copter [ x ] plane [ ] rover"
__label__YES "baro: extend health check to ensure values are changing"
__label__YES "the current ap_baro health check ( checks:"
__label__NO ">- data has arrived in the past . seconds - pressure is non-zero"
__label__NO ">we should extend this to also check that the values are changing."
__label__NO "they don't need to change on every read of course but we should have seen some change in pressure or temperature with in the last . (or more?) seconds."
__label__YES ">i'm raising this issue because i've seen one log where the sensor kept responding but provided the same value in every response."
__label__YES "copter: gps glitch pre-arm check and notification"
__label__YES "this pr adds the following change to improve user awareness of gps glitches:"
__label__YES ">- rgb led flashes blue and yellow during a glitch (for all vehicles) - copter pre-arm gps checks gets additional check for glitches - copter: ""gps glitch"" and ""gps glitch cleared"" messages sent to ground station (which should appear on hud) - copter dataflash logging of glitch as an error"
__label__YES ">i plan to follow this pr up with another to add a gps glitch failsafe but that is slightly trickier and will require more testing while this pr is relatively safe and could be added to an ac. point release fairly easily."
__label__YES "plane: tecs: navl_lim_bank does not have an appropriate minimum angle forced"
__label__NO "#### issue details when i initially proposed navl_lim_bank i didn't think to clip this for values that are simply illogically low."
__label__NO "setting very low values like degrees results in incredibly large loiter radiuses."
__label__NO "at a minimum we should refuse to use the lim_bank parameter if it would result in a sea level radius greater then the wp_loiter_rad."
__label__NO ">this is straightforward to implement, just noting here so that i don't forget to fix this within the next couple of weeks."
__label__NO ">#### version master"
__label__NO ">#### platform [ ] all [ ] antennatracker [ ] copter [ x ] plane [ ] rover"
__label__NO "copter: enable arming_min_volt"
__label__YES "copter doesn't use the arming_min_volt parameter but we should to allow an optional check that the batteries are charged before takeoff."
__label__YES "copter: pre-arm check of gps update rate"
__label__YES "we had one crash on ac. testing because the gps was updating at only hz instead of hz."
__label__YES "we should add a pre-arm check that the gps update rate is ok."
__label__NO 
__label__YES ">in that particular case the user was in stabilize mode when taking off so normally we would not check the gps but perhaps we should at least check the update rate if a gps is attached and refuse to arm."
__label__YES "plane: fix deepstall land detect disarming in flight"
__label__YES "deepstall never implemented is_on_approach() which can lead to is_flying determining that the aircraft is no longer flying and disarm."
__label__YES ">also corrects is_flying to only check for the landing stage on approach when in flight_land."
__label__NO ">@lthall is probably best placed to explain the changes but my understanding is:"
__label__YES ">- the main vehicle code gets a new **thrust_loss_check** function that looks for signs the vehicle is suffering from a loss of thrust for at least second."
__label__NO "if triggered the motor library's **set_thrust_boost** method is called to allow the motor lib to go into a thrust-boost mode to try and recover."
__label__YES "to trigger there must be: - a lost of angular control of at least .degrees (@lthall, should this be degrees?) - overall average throttle must be % and motor library reports at least one motor has hit its upper limit - vehicle is not climbing - motormatrix library gets a new **check_for_failed_motor** method that uses a hz average of the motor outputs and some heuristics to determine if a motor failure is probably happening."
__label__NO "this combined with the trigger from the vehicle code enables the recovery."
__label__YES "- the motor matrix recovery method involves: - removing the failed motor from the check that would otherwise limit other motors outputs from climbing."
__label__YES "i.e. normally if one motor goes to full, the opposite motor is forced low..."
__label__NO "this does not happen with this patch."
__label__NO "- disabling current limiting?"
__label__NO ">[here is a video of a simulator test with a hexacopter]("
__label__YES "battmonitor: fix failsafe conversion"
__label__YES "the parameter conversion code was tested when the failsafes were called `batt_fs_low_volt` which i later renamed for string length reasons, but i missed fixing all the conversion code."
__label__NO "this affects all the released vehicles."
__label__NO ">i've only tested plane locally due to issues with compiling older versions of copter/sub so i need some assistance with that."
__label__NO "(the test is to clear your parameters (set the `format_version` to for example and reboot, then set `fs_low_volt` `fs_low_mah` and the failsafe action on copter, then install firmware with this patch and check that `batt_low_volt`, `batt_low_mah` and `batt_fs_low_act` on copter are all set."
__label__NO ">edit: this deletes really old ( era) param conversion code as it interferes with the newer batt monitor param conversion code."
__label__YES "ap_arming: add servo voltage check, paramertise the vcc check"
__label__YES "needed to prevent arming with extremely bad/questionable servo power supply."
__label__YES "the board rail was parameterized on the lower side as it allows the user to specify a higher minimum voltage then the default range, which can be convenient when dealing with backup regulators."
__label__YES "rover: add continue-in-auto option to rc failsafe"
__label__YES "rover supports the rc failsafe (aka throttle failsafe) which triggers when the transmitter is turned off."
__label__NO "unlike copter though, once enabled, it triggers in all modes."
__label__YES "instead we should add the ability to *not* trigger the failsafe if in auto mode."
__label__NO "copter: rpm and current feedback from esc"
__label__NO "is it possible to receive motor feedback from the escs through the signal line?"
__label__YES "> if yes, add this apm firmware feature: - during transition from pre-operation to flight as the throttle is being initiated have the apm run a quick feedback check and compare on the escs for motor current draw."
__label__NO "this could effectively be a propeller check to verify proper installation, condition and matching."
__label__YES "if the results are not within x% of each escs the apm would alarm and disarm."
__label__NO "this capability could stop some of the flips received from improper propeller installations."
__label__YES "note: with the manner that firmware .. rc spins up propellers the apm could possibly do this check upon the first momentary fast propeller spin before the propellers settle to their default slow spin. ???"
__label__YES ">the idea is that a propeller turning in the opposite direction of design would create a measurably different current draw (thrust) as a properly spinning propeller."
__label__YES "this would be easily recognized electronically from a comparison to the other running motors and could stop the apm from arming the vehicle in a faulty configuration."
__label__YES "thus, eliminate some machine flips or for the hex and oct stop them flying with improper configurations."
__label__NO "of course - if the props do not cause a motor current draw difference then all these words are ---- just words."
__label__YES "copter: information on the screen for the reason of failsafe"
__label__YES "mission planner gives the message of failsafe, but not specified the anomaly that has activated: it would be very useful to have immediately detailed information with the parameter and the eventual value"
__label__NO "coter: add support for external siren / screamy"
__label__NO "philip, tridge and i had a talk about this and we decided: - tridge or randy will make an ap_notify object for an external buzzer."
__label__NO "it will take one parameter which will allow choosing which relay is used to sound the siren."
__label__NO "- because of an issue with the relay pins always being pulled high when the pixhawk boots, the relay pin will be pulled _low_ when the siren should be sounded."
__label__NO "this means we will need a physical relay to switch around the signal."
__label__NO "- randy will document how to connect the external buzzer on the wiki and we hope that some manufacturer will create a plug-and-play solution so that large numbers of people can enjoy the new feature - this won’t make ac. but will make ac.."
__label__NO "copter-.: check aux switch and mode switch inputs are within range"
__label__NO "this pr helps resolve [this issue re the frsky sbus receivers]( in copter-. (equivalent to [this pr on master]("
__label__YES "the underlying issue is that some channels recover faster than others from a failsafe."
__label__NO "in particular we have seen cases where the lower channels recover first but the upper channels (used for auxiliary switches) recover much later."
__label__YES "before the higher channels have recovered they report as their value which can cause the vehicle disarming itself in the air if the arm/disarm function has been attached to the aux switch."
__label__NO ">this has been tested in sitl."
__label__NO ![sitl-test](
__label__YES "copter: disarmed mid-air when radio failsafe recovered (frsky receiver)"
__label__NO "### bug report"
__label__NO ">**issue details**"
__label__YES ">arducopter .. disarms while flying auto mission when radio reception came back - please see details in log at second .."
__label__YES "> i had earlier werid behaviours (quad yawing degrees when radion comes back)"
__label__NO ">i am flying in failsafe mode ""continue with mission when rx lost'"
__label__NO >**version**
__label__NO ">arducopter .."
__label__NO ">**platform** [ ] all [ ] antennatracker [x] copter [ ] plane [ ] rover [ ] submarine"
__label__NO ">**airframe type**"
__label__NO ">quad, x"
__label__NO ">**hardware type**"
__label__NO >cube
__label__NO ">**logs** _please provide a link to any relevant logs that show the issue_"
__label__YES "copter: set home on arming vs in air without prior d lock"
__label__YES "when flying before d lock is achieved, it is possible to get d lock in the air."
__label__YES "the gps position is most likely not accurate enough to store and could be miles away from the actual position."
__label__YES ">if the user rtl's or enters failsafe the copter will fly away."
__label__YES ">the user should receive notification home is not set on the gcs and the craft should loiter instead of rtl if home is not set by arming."
__label__NO "any other reasonable alternative fallback approaches are welcome in the comments."
__label__NO ">the goal here is to be defensive against user error and not blaming the user."
__label__NO jason
__label__YES "plane: manage quadplane throttle during rc failsafe"
__label__YES "the current behavior is the moment a rc failsafe starts we immediately reset all control input values to ."
__label__YES "this is reasonable for all the flight control surfaces, and reasonable for throttle in a normal fixed wing mode, however with a quadplane this can lead to maximum rate descents (or freefall) if the vehicle was in a vertical flight mode."
__label__YES "this instead simply resets the throttle to % input which would maintain altitude in any of the altitude hold modes, continues to land in qland/qrtl, and in qstabilize should result in hover throttle which avoids a sudden drop/spin on the airframe."
__label__YES ">the extra call to `control_failsafe()` is required to ensure that if you swap from a quadplane mode to something like manual during the failsafe that there is not a momentary blip of % throttle."
__label__YES "ahrs: add dcm/ekf attitude consistency pre-arm check"
__label__YES "we should add an attitude consistency pre-arm check to all vehicles that checks that all active ahrs cores (dcm, ekf, ekf) have consistent attitudes and if not, display a pre-arm check."
__label__YES ">this issue was raised in response to [this crash report]( in which the backup ekf's roll estimate flipped over."
__label__YES "the vehicle was allowed to takeoff and it flew fine for a while until the ekf selector decided the backup was the better choice and the vehicle crashed."
__label__YES "ahrs: add pre-arm check that attitudes are consistent"
__label__YES "this pr adds and changes two pre-arm checks to resolve [this issue]( which stems from a [crash of a vehicle running copter-..]( where the backup ekf flipped over while the vehicle was disarmed (probably because the user ran a compass calibration but did not reboot the board because the pre-arm compass checks were disabled)."
__label__YES ">- makes the compass calibration pre-arm checks mandatory (i.e. they cannot be turned off) - adds a new attitude check that all ahrss (dcm, ekf, ekf) are close to the attitude from whichever of these is primary."
__label__NO "the threshold is set to deg roll/pitch, deg yaw."
__label__NO "this new check is part of the ins pre-arm checks."
__label__NO ">this has been tested in sitl by adding some debug and then setting these parameters to throw off some of the attitude estimates."
__label__NO ">to make the roll/pitch check fail i adjusted the accelerometer offsets as follows: - param set ins_accofs_x"
__label__NO ">to make the yaw check fail i set the compass offsets as follows: - param set compass_ofs_x - param set compass_ofs_y"
__label__NO ">picture of some sitl testing ![att-check-sitl]("
__label__YES "plane: prevent loss of control when q_enable is set while flying"
__label__NO "the key point here actually crept up on my by accident."
__label__NO "i noticed we inconsistently swap between `available()` and `enable` for early return checking."
__label__NO "the problem with enable is that you can get into the situation where q_enable wasn't set on the ground, and is changed in flight."
__label__YES "this results in the aircraft not allocating objects (because we refuse to do setup while armed), but then `update_throttle_hover` can do a nullptr dereference, and `in_vtol_auto` can report true causing the vehicle to hand control over (until we segfault in `update_throttle_hover` anyways)."
__label__NO ">i took a paranoid approach of converting everything that used enable to `available()`."
__label__NO "i made `available()` also check `enable`, but i'm not really sure that is the correct action."
__label__YES "(setting enable to while flying could then result in not updating motors/leaving them free spinning at last commanded throttle)."
__label__NO ">also rename `check_throttle_suppression` to `update_throttle_suppression` to reflect that this actually can change the outputs."
__label__YES "copter: speed up ekf failsafe by checking if velocity innovations > x fs_ekf_thresh"
__label__YES "copter's ekf failsafe checks if out of innovations (compass, velocity, position) are greater than the fs_ekf_thresh parameter value."
__label__YES "if they are (for more than a second or two) the failsafe triggers."
__label__YES ">in cases where the gps position/velocity has gone bad, we can likely speed up triggering of the ekf failsafe if we also trigger in cases where the velocity innovations are greater than twice the fs_ekf_thresh."
__label__YES ">here is a graph from one log in which the compass was fine, but the gps was providing terrible positions and velocities."
__label__YES "in this case the gps itself also reported that it had very little idea of where it was."
__label__YES "despite this it took seconds for the ekf failsafe to trigger."
__label__NO >![corrado-innovations](
__label__NO "rover: separate failsafe actions for rc and gcs failsafes"
__label__NO "currently failsafe is very basic, it should be improved to allow to sperate action on different type, loggin etc ."
__label__YES "arming: allow checking all ekf cores for health"
__label__YES "this is intended to actually check that all the ekf cores are actually healthy, rather then just having the primary core be healthy."
__label__NO "i didn't tag the other vehicles yet, as it wasn't obvious to me under what situations copter/rover want to run the check."
__label__NO ">overall i'd love to see the ahrs arming check become common."
__label__YES ">i haven't flight tested this yet, was just spun out as a side effect of paul's presentation, and should be reviewed more."
__label__NO "ap_gps: remove external event from septentrio driver"
__label__NO "the septentrio driver was logging camera feedback that the gps witnessed."
__label__YES "this was useful from a minimum hardware perspective, but it does pose a safety risk to flight."
__label__YES "if to many events are triggered (due to noise on the input pin, or a truly fast camera) you can create congestion on the serial port to the gps and the position data gets delayed."
__label__YES "we detect this in the health bits, but the lag the data experiences becomes significant enough that the ekf will start rejecting the gps data."
__label__YES "this leads to oscillations in the sky, and all kinds of horrifying stuff happening."
__label__NO "to correct for this i've removed the feedback into ardupilot."
__label__YES "i'm happy to restore it in the future if there is a patch on the gps firmware that would prevent this from blocking the flight critical positioning data."
__label__YES "as a note the gps did detect the buffer overflow/port congestion, and we did detect it on the ardupilot side."
__label__NO "this does not have any impact on the ppk workflow, all events are still logged to the gps sd card the same as they were before."
__label__NO ">example of external event induced lag (this line of timestamps should be perfectly flat, instead of bending in the middle): ![figure_]("
__label__NO ">this also makes a change to ensure that we log receiver status to the gps sd card."
__label__NO "this is useful for problem analysis, when the statustext message from the autopilot gets lost, or the user has misplaced the log files."
__label__NO ">this was test flown on a asterx-m"
__label__NO ">@amilcarlucas this patch may be of interest to you."
__label__NO "copter: confirm that imu failover works correctly"
__label__YES "this issue on diyd suggests that at least in some cases, the imu fail-over didn't work."
__label__NO 
__label__NO ">this issue is raised to focus that investigation (although we could also do it on discuss)"
__label__YES "gcs_mavlink: disable reboot when armed"
__label__NO "this prevents reboot on vehicles that have arming_require=, which applies to some planes, but those vehicles tend to not use mavlink reboot anyway."
__label__YES ">this pr was requested by edin from aeronavics after an incident where a reboot was accidentally requested while flying"
__label__NO "heli - replace h_land_col_min with h_col_mid"
__label__NO "this is implemented to prevent issues with new spool logic in copter .."
__label__YES "it prevents users from failing to set h_land_col_min properly, or failing to set it at all, which causes ground resonance, potential loss of attitude solution during landing and subsequent dynamic rollover."
__label__YES "watchdog reset copter in flight without apparent problem"
__label__NO "### bug report copter master flying fmuv (cubesolo build target) on a stock solo pixhawk cube."
__label__YES "watchdog reset the fc while the copter was in flight for seemingly no reason causing it to crash."
__label__NO "the copter was under control, flying normally, and there are no errors or irregularities in the log that i can readily see."
__label__YES "the operator was flying normally, the motors stopped, and while falling the reboot tones were audible."
__label__NO "the log file that began after the reboot contains `-- :: prearm: internal errors detected (x)` which indicates the fc rebooted by watchdog."
__label__NO ">**version** copter .-dev from // (fmuv)"
__label__NO ">**platform** [ ] all [ ] antennatracker [x] copter [ ] plane [ ] rover [ ] submarine"
__label__NO ">**airframe type** dr solo quadcopter"
__label__NO ">**hardware type** pixhawk . cube"
__label__NO ">**logs** [watchdog reset.zip]("
__label__NO "rangefinder arming checks"
__label__NO "this starts on a global set of arming checks on rangefinders."
__label__NO "for now it simply introduces the requirement that if a rangefinder was specified, then we must have created a driver for it."
__label__NO ">this was actually pretty easy by itself, unfortunately it turns out we have consumed all the bits for `arming_checks` so i had to add param conversion for it, to get it to have bits (we can still only use of them sadly)."
__label__NO ">this also makes it easier to dump the keys for conversion, just to make it a single define change in the future."
__label__NO ">this is a draft as the conversion in sub is not working correctly."
__label__NO "for reference this is what the key dump prints on sub: `key : index : groupelement : arming_check: `"
__label__NO "reset last update"
__label__YES "fix and in case of rapid mode switching the pos_target aren't resetted."
__label__NO "for example: doing rtl -> stabilize -> rtl ."
__label__NO "going into stabilize will set pos_target.z to : now modertl::init call wp_nav->wp_and_spline_init() that don't reset z target and continue to climb_start() that calls wp_nav->set_wp_destination()."
__label__NO "since ((ap_hal::millis() - _wp_last_update) < ) is true, it get the origin from the pos_controller and that origin is false ..."
__label__YES "leading to a rapid descent to ground."
__label__NO ">the same behavior can be seen with guided -> stabilize -> guided"
__label__NO ">i think it is safe to reset the _last_update both on wp_nav and pos_controler each time we reinit the controler."
__label__YES "copter: detect and handle motor loss for improved redundancy"
__label__YES "motor mixers are based on a fixed mixing that limits the roll, pitch, yaw and thrust to prevent saturation of the motor outputs."
__label__YES "when a esc/motor/propeller fails there that motor tends to go to maximum limiting the average motor output (thrust) and the roll, pitch, and yaw authority."
__label__NO ">the motor mixers are designed to prioritise roll and pitch first, then yaw, followed by thrust."
__label__YES "this then represents the order in which control is lost."
__label__YES "first the aircraft will start to descend, more severe loss will result in loss of yaw control, followed finally by complete loss of attitude control."
__label__NO ">the severity may be limited by ensuring the aircraft is well tuned with the correct cg location and excess thrust."
__label__YES "yaw control can be given up earlier by reducing mot_yaw_headroom to ."
__label__YES "this may mean that yaw control is temporarily lost during aggressive maneuvers or extreme disturbances."
__label__YES ">the most vulnerable frame is the hex as any loss of motor control will make yaw control limited or impossible depending on the precise location of the cg."
__label__NO "this may be mitigated using a new propeller configuration: [copter: additional hex propeller configuration #]("
__label__NO ">the solution has two parts, detection and handling."
__label__NO ">**detection**: -this is most reliably done using esc feedback."
__label__NO "this should be a basic requirement of any can esc implementation (both failure and maximum thrust limitation)."
__label__YES "-this could also be done much less reliably by looking at the maximum thrust output to any motor and trigger a failure if a motor stays at full throttle for an extended period."
__label__NO "this may have many other implications in the case of a false positive and i do not recommend this approach."
__label__YES ">**handling**: - the simplest approach is to remove the ability for the compromised motor to limit the thrust of the remaining motors."
__label__YES "this will ensure we achieve a significantly higher maximum thrust and also maximise roll and pitch authority."
__label__YES "- the more complex and complete solution is to completly recalculate the motor mixing matrix based on the remaining motors potentially even including the limited thrust output of the compromised motor."
__label__NO "this is a much more ambitions goal and i would not recommend this approach in the first instance."
__label__YES ">this is an issue that encompases this issue: [copter: ensure hexacopter with failed motor can make safe landing #]( [.. hexacopter motor redundancy #]("
__label__NO ">to quote @rmackay -"
__label__NO ">> i had a chat with @lthall and there's two things we need: > > single motor failure detection."
__label__NO "leonard suggested we modify the ap_motors_matrix class so that it looks for a single motor >% while all other motors are <% (those percentages are guesses and could be modified based on testing)."
__label__NO "we should probably use a counter and/or bitmask so that the situation must continue for some amount of time (.sec?) before we decide the motor has failed and avoid false positives."
__label__NO "> based on the above checks, exclude the ""failed"" motor from the saturation handling code."
__label__NO "so for example, we should exclude from the calculation of ""rpy_low"" and ""rpy_high"" here in ap_motorsmatrix.cpp."
__label__YES "> according to leonard, doing this will theoretically allow the overall throttle of the motors to climb to % instead of the current % while still maintaining attitude control."
__label__YES "copter: ensure toshibacan escs shutdown when vehicle is disarmed"
__label__NO "this pr improves the safety of using toshibacan escs in two ways:"
__label__YES ">- specifically check the vehicle's armed state and if disarmed send a shutdown command to all escs - add a pre-arm check to copter that the mot_pwm_min = , mot_pwm_max ="
__label__YES ">the second item is important because the toshibacan esc driver assumes that pwm output sent to the corresponding servo output will be in the range to when converting the pwm output to an rpm that the escs understand."
__label__NO ">in master this means that (for multicopters) the mot_pwm_min/mot_pwm_max must be set to and respectively."
__label__YES "[this is specified on the wiki]( but invariably even experienced users sometimes forget leading to a scary situation where the escs/motors spin-up (normally to a low speed) even if the vehicle is disarmed because we output when disarmed to keep regular escs from beeping."
__label__NO ">this has not yet been tested on actual escs but will be in the coming days."
__label__YES "copter locks up in flight, motors stop, crashes vehicle w/ pixhawk"
__label__NO "### bug report"
__label__YES ">there are now at least three different people with different solos running .-dev that have had arducopter crash and stop in flight."
__label__YES ">- the dataflash and telemetry end abruptly with seemingly no problem logged."
__label__NO "- the motors stop."
__label__YES "the copter falls to the ground (obviously)."
__label__YES "- there are no sounds, beeps, or indications."
__label__YES "it just stops and drops."
__label__NO "- upon repowering, everything starts up like normal."
__label__YES "- i have an incident that took place before the watchdog even existed."
__label__NO "and three more post watchdog."
__label__NO "- in the all cases, the version of copter master (.-dev) was about a month or more old from now, so probably just before and just after watchdog was implemented (for time reference)."
__label__NO ">thus far, it has not happened to anyone using the green cube."
__label__NO "and to my knowledge it hasn't happened to anyone else running any other hardware."
__label__NO "_it appears to be isolated to the old dr manufactured pixhawk for the solo_."
__label__NO ">i've put the latest master from yesterday up for users to install since i think it has some better logging."
__label__NO "and hoping some users will be willing to test it knowing their solo could still crash at anytime."
__label__NO ">this appears to be what happened back in this issue that at the time seemed like a watchdog issue."
__label__NO "as it turns out, it was the watchdog doing its job."
__label__NO (
__label__NO ">this is a video from a tablet that was screen recording at the time of the incident."
__label__YES "it shows that the video stream, wifi link, and companion computer were still powered up and running, despite the autopilot failing."
__label__NO 
__label__NO "this corresponds to log # in the pre enhanced logging zip file."
__label__NO ">**version** arducopter master .-dev"
__label__NO ">**platform** [ ] all [ ] antennatracker [x] copter [ ] plane [ ] rover [ ] submarine"
__label__NO ">**airframe type** dr solo"
__label__NO ">**hardware type** pixhawk cube that is oem on the solo."
__label__NO "but this is really no different than any other pixhawk hardware on any other vehicle."
__label__NO "vehicles with this failure as far as we know all were equipped with the solo gimbal."
__label__NO ">**logs** this first zip is different logs from _before the new enhanced logging._ one of these incidents happened with watchdog enabled."
__label__NO "the others were either before the watchdog or with it disabled."
__label__NO [solo.shutdown.logs.before.new.logging.zip](
__label__NO "> once we get logs using the new logs, i'll put them below."
__label__NO "frame params: disable watchdog for solo"
__label__NO "set `brd_options` default to zero to disable watchdog on solo with copter .-dev."
__label__NO "this is in response to until the issue is resolved."
__label__NO "this param files this pr updates are also used by the `cubesolo` and `cubegreen` build targets."
__label__YES "copter: add pre-arm check of pilot_speed_up param"
__label__NO "this is a very minor change to resolve this issue:"
__label__YES ">the argument for **not** adding this check is that we have hundreds of parameters, many of which can cause a crash if the user sets them incorrectly (i.e. pid gains of zero will also cause a crash)."
__label__YES "still, there was a real support issue where a user couldn't control their altitude so i'm adding this check."
__label__YES ">this has been checked in sitl and works as expected (i.e.values below cause a pre-arm check message to appear)."
__label__NO "copter: reject reboot request from gcs if ""auto"" esc calibration also requested"
__label__YES "this pr resolves this safety issue: in which the motors may spin if the user sets esc_calibration = (auto calibration) and then triggers a flight controller reboot from the gcs."
__label__YES "essentially we reject the reboot request so the user must disconnect and reconnect the battery."
__label__NO ">this has been tested on my trusty iris and the following messages pops-up when i tried to reboot from the gcs after also requesting the auto esc calibration."
__label__NO ![reboot-rejected](
__label__NO ">other simple tests were performed to ensure existing logic was not affected:"
__label__NO ">- requests to reboot the flight controller when esc calibration had not been requested worked normally."
__label__YES "- other types of esc calibration (auto, raise-throttle-at-startup) also worked normally"
__label__NO "rover: on completion of mission hold or loiter within auto"
__label__NO "this pr slightly changes how rover's behaves when an auto mission is completed."
__label__NO "previously the vehicle would switch out of auto to hold, loiter or acro mode (see mis_done_behave parameter) but this pr uses hold-within-auto and loiter-within-auto instead (for acro it still switches modes)."
__label__YES ">the advantage of this is that the vehicle will stay in auto mode which can impact failsafe behaviours."
__label__YES "in particular we currently suppress radio failsafes while the vehicle is in hold mode but we wouldn't want to do that if the vehicle was in hold-within-auto."
__label__NO ">this pr closes this issue:"
__label__NO ">this has been successfully tested in sitl"
__label__YES "ap_motors: allow the user to control minimum pwm time when coming out of safe_disarm"
__label__YES "`m_safe_disarm` allows you to ensure there are no pulses while disarmed."
__label__YES "depending upon the esc you have you will need a minimum time at minimum throttle to enable the esc to spin up."
__label__NO "this introduces a parameter to control the ramp up time on the motor."
__label__YES "the initial patch was done by @lthall i did the bench testing of it and had to add a patch to restore a regression around sending pulses when it shouldn't be."
__label__NO "the main change i introduced on top of what @lthall did was that when going into the shutdown state on the motors i removed the spool down time."
__label__YES "i think this is actually appropriate though as while i need a second of the motor being at a low throttle to start the motors, i really don't want or need a second of minimum throttle when stopping the motors."
__label__YES "and the act of disarming the aircraft already has the same effect of cutting the throttle output so i think this is a safe path."
__label__YES "copter: high vibration failsafe"
__label__YES "this pr adds a ""high vibration failsafe"" to copter resolving these two issues ([vibration failsafe]( [get-vert-pos-rate returns zero]("
__label__YES ">high vibration and loss of altitude control are detected if the following are true:"
__label__YES ">- ekf's velocity and position innovations are positive - ekf's vertical velocity variation >"
__label__NO ">high vibrations can be tested in sitl by doing the artificially forcing imu clipping by doing the following:"
__label__NO ">- param set ek_imu_mask - param set tune (to allow ch to control the accelerometer range) - param set tune_max - param set sim_acc_rnd - arm in loiter and takeoff to an altitude of m - param set sim_acc_rnd"
__label__YES ">at this point the vehicle will climb quickly as shown below: ![master-alt]("
__label__YES ">with this vibration failsafe the vehicle does not climb: ![vibe-failsafe-alt]("
__label__NO ">there are these known problems:"
__label__YES ">- [ ] only implemented for the ekf - [x] if the mot_thst_hover value is more than about % higher or lower than the vehicle's actual hover throttle the vehicle may be unable to descend (if the hover throttle is too high) or it may descend too quickly (if hover throttle is too low)"
__label__YES "prevents fly away in alt hold due to unstable pid"
__label__NO "many people are flying in alt hold from their first flight."
__label__YES "this presents a significant risk that unstable pid settings will cause an uncontrollable and unrecoverable fly away."
__label__YES "this pr detects the high vertical velocity error and reduces the act_mot_mix_max parameter to prioritise throttle."
__label__YES "this lets the altitude controller prevent a fly away and enables the pilot to land safely."
__label__YES "ap_toshibacan: consume and publish current, add arming check"
__label__NO "this pr adds two enhancements to our toshibacan esc support:"
__label__YES ">- consume the instantaneous current reported by the esc and calculate the total current (since boot) - log the above to the dataflash and publish to the gcs using the [esc_telemetry_xxx]( messages - add a pre-arm check that an esc is present (i.e.providing data back to the flight controller) for each motor controlled by the ap_motors library."
__label__NO ">this has been bench tested using a single esc and screen shots of the results are below:"
__label__NO ">- mp's mavlink inspector showing the current and totalcurrent for the first esc is updating ![toshibacan-esc-telem]("
__label__NO ">- dataflash log shows the esc's instantaneous current."
__label__NO "the total current is zero but this is perhaps just because the total is still very small ![toshibacan-curr-logging]("
__label__NO ">- pre-arm check that motors are missing (was testing with a quad frame) starting from motor ![toshibacan-prearm]("
__label__NO ">more testing at eams lab will be done before we merge this."
__label__NO "all feedback welcome!"
__label__YES "copter: add pre-arm failure if terrain database (srtm) fails to allocate"
__label__YES "during a recent competition we enabled terrain database (srtm) with m accuracy and scripting and found that the terrain_enable parameter silently reverted to "" after bootup."""
__label__YES "what was happening was the flight controller was running out of memory and failed to allocate enough memory for terrain."
__label__YES ">we should add a pre-arm check if the terrain database allocation fails so that the user is aware of the problem before flight."
__label__YES "if i hadn't noticed, i think the first indication of a failure would have been an immediate terrain failsafe after the takeoff when the first terrain-alt command was run."
__label__YES ">as a side note we should probably add pre-arm failure warnings if any memory allocations fail."
__label__YES "copter: refuse reboot command from gcs if esc_calibration ="
__label__YES "we have had one report of a loophole in the esc calibration procedure which can lead to the motors spinning up if the normal procedure isn't followed."
__label__YES "to recreate the motor spin-up issue do this:"
__label__NO >.
__label__NO "plug in a battery ."
__label__NO "connect and set esc_calibration = to indicate the ""auto"" esc calibration should be performed (the mp makes this convenient with a button on the initial setup / mandatory hardware / esc calibration screen ."
__label__NO "reboot the flight controller from the gcs (i.e.leave the battery plugged in)."
__label__NO "this can be most easily done from mp's action tab by setting the top-left drop-down to ""preflight_reboot_shutdown"" and then push the ""do action"" button ."
__label__YES "because the battery was not disconnected the escs will already be initialised so when the flight controller reboots and starts outputting high pwm values are part of the esc calibration the motors will start."
__label__YES ">the solution is to somehow modify the [gcs_mavlink::handle_preflight_reboot()]( function so that it refuses reboot if the esc_calibration parameter has been set to ."
__label__NO "this should force the user to reboot the flight controller by disconnecting the battery."
__label__YES "note that when we refuse to reboot we should also provide a text message to the gcs to alert the user why we've refused to reboot."
__label__NO ">below is a picture of the mp screen used to trigger the auto esc calibration ![esc-cal-steps]("
__label__YES "copter: .-dev allows forced arming in loiter without a good position estimate"
__label__YES "similar to [this issue found for rover]( we should never allow arming in autonomous modes (loiter, poshold, guided, etc) without a good position estimate even if the user sets arming_check = or does a ""forced arming""."
__label__YES "it's not safe because the vehicle cannot possibly control it's position nor will it be accepting input from the pilot (because it's an autonomous mode)."
__label__NO "ac_autotune: add check for reverse response abort."
__label__YES "this patch addresses a problem where the autotune safety features are not triggered if there is sync loss at the beginning of the twitch."
__label__YES "this can result in the aircraft moving in the opposite direction to the twitch."
__label__YES "because the twitch direction is now negative it does not trigger the over angle safety features."
__label__YES "copter: disable gcs failsafe by default"
__label__YES "this disables copter's gcs failsafe by default."
__label__YES "this change is being made in response to beta testers' reports that it has been triggering unexpectly or causing pre-arm failures (i've noticed this myself)."
__label__YES ">i think it is safe to disable the gcs failsafe by default (it was enabled by default in ..x and earlier) because nobody has been relying on it because it was not actually function."
__label__NO "it didn't do anything that the regular rc failsafe didn't already do."
__label__NO ">fyi to @pedalspaddles"
__label__NO "copter: stand-by mode for use with multiple flight controllers running in parallel"
__label__NO "standby is the ability to have multiple flight controllers working together where only one of these is the controller in command (cic)."
__label__YES "the ""ride along"" controllers can experience significant i-term build up as they may have different attitude solution compared to the cic."
__label__NO "the secondary controllers may also be placed in a more basic mode."
__label__NO "for example, during an auto mission the secondary flight controller may be held in loiter."
__label__NO ">the functionality in this pr is designed to be a minimum impact standby functionality for arducopter."
__label__NO ">the requirements of this capability are: - remove i term build up - remove integrated build up sources - not trigger crash checks, parachute, or landing detectors."
__label__YES "- ensure the aircraft will still fly effectively in stabilize, alt hold, loiter and continue to stabilize the aircraft in other modes."
__label__YES "this is to ensure the aircraft will continue to be controllable in the event that a secondary flight controller is made cic without disabling the standby state."
__label__NO ">this will be the first introductory implementation of this functionality to facilitate development in this area."
__label__YES "copter: add warning to user from vehicle and ground station when user is approaching the fence"
__label__NO "original request appeared on mission planner issues list"
__label__YES "copter: check motor thrust loss detector is identifying the problem motor correctly"
__label__NO "below is a screen shot of a user log in which an external switch has been used to turn off motor of hexa-x vehicle."
__label__YES "the rcou log makes it obvious that motor is the problem motor but the message indicates that the motor-thrust-loss-detectors thinks the problem motor is ."
__label__YES "we should check whether this is a reporting error or if the detector has an issue causing it to misidentify the problem motor."
__label__NO >![thrust-lost-check-incorrect-motor](
__label__YES "copter: vibration failsafe actions"
__label__YES "@rmackay and i were discussing a recent event of a user vehicle that misbehaved due to very high vibration levels."
__label__YES ">the initial idea would be to detect that vibration problem (constant/very high clipping) and assume a ""failsafe"" like action."
__label__NO "this would imply several actions, like switching to a baro controlled height, reducing gains, beeping an alarm pattern, message to the gcs, and perhaps going on a althold/poshold height (at rtl height perhaps)"
__label__NO "copter: disable esc calibration by default"
__label__YES "as discussed as part of [this pr's review]( we should disable the high throttle triggered esc calibration by default."
__label__YES ">although this high throttle method is convenient, it can also be dangerous because users may plug and unplug the vehicle a few times with the throttle high, wondering why it won't startup properly (because it's entering esc calibration) and then the motors can spin up."
__label__YES "copter: add pre-arm check of gcs failsafe"
__label__YES "i think we should add a pre-arm check of whether the gcs failsafe has triggered."
__label__NO "we have similar pre-arm checks for rc, battery and ekf failsafes."
__label__YES ">tbh, it's possible this may be more annoying than it is useful but without it there is some danger that the user will have triggered the gcs failsafe (perhaps the radio disconnects before takeoff) but the user doesn't notice and they end up flying without an active gcs failsafe."
__label__YES "copter: gcs failsafe option to trigger in auto"
__label__YES "copter: arming check doesn't check rc failsafe if armed from gcs"
__label__NO "this issue was first identified at droidplanner/dronekit-android#."
__label__NO "i was able to reproduce it using ac.rc, `arming_check`="
__label__NO ">turn off the rc, or disconnect the receiver from the pixhawk."
__label__NO "the gcs will report ""rc failsafe""."
__label__YES "sending the arming packet will still allow it to arm."
__label__NO "plane.: ap_scripting: correct generator bug"
__label__NO see
__label__NO ">this corrects a bug in the scripting generator to bring it inline with master."
__label__YES "it is possible that this bug can cause lockups if the the affected bindings are used."
__label__NO ">the line in master"
__label__NO "copter-.: ap_scripting: correct generator bug"
__label__NO "this corrects a bug in the scripting generator to bring it inline with master."
__label__YES "it is possible that this bug can cause lockups if the the affected bindings are used."
__label__NO ">the line in master"
__label__YES "plane: fix vtol yaw for stick_mixing"
__label__YES "stick_mixing was recently patched to disallow yaw inputs while in quadplane auto modes, however i hadn't realized that the same path was used for modes like `qstabilize` which meant qstab/qloiter/qland were all not seeing any pilot commanded yaw."
__label__YES "this patch currently takes the blacklist of what modes are not allowed to have pilot input when stick mixing is disabled, but we could invert it to be a whitelist if preferred."
__label__NO ">i'll be taking this out and flight testing this today."
__label__NO "checklist logging"
__label__NO "it would be very useful for the controller to store a checklist of start-up data (arming checks etc) at the beginning of any flight which could be uploaded to mission planner or tower and added to a more comprehensive manual checklist (user defined) and be easily printed."
__label__NO "i fly commercially and a good paper trail is important."
__label__NO "this would, at least partially, automate the process."
__label__NO "rc channel handling with mavlink overrides"
__label__YES "this is a cleanup with the handling of mavlink overrides that can cause garbage data to be consumed."
__label__NO ">there is a particular vehicle setup to make it happen: - do not use a rc receiver at all - send any form of mavlink rc input that doesn't provide a value for all the channels (a prime way to do this is `manual_control`)"
__label__NO ">the situation that arises is as follows: ."
__label__NO "the rc `control_in` and `radio_in` are both at from the initial reset ."
__label__NO "the gcs sends a `manual_control` message."
__label__NO "this message specified say the roll and throttle channels, and left the others as do not use."
__label__NO "this causes us to flag that we have new overrides."
__label__NO .
__label__NO "we call `read_input` which sees that we have new overrides so it polls all the channels to update themselves ."
__label__YES "the channels poll themselves, the ones with an override value happily just use that and update themselves, however for a channel that didn't have a value, such as say `pitch` what happens is they call the hal method to read the value for that channel, which has no way to flag it didn't have anything real."
__label__YES "the effect is garbage data gets trickled up, and used for the channel."
__label__NO ">this patch works around this by assuming we can't trust the hal to manage this case for us."
__label__NO "it just wasn't quickly obvious to me how this was going wrong when i tried to investigate chibios's implementation."
__label__NO "sitl also went wrong, and i didn't see a good way to solve this without a deep dive into hal's that i didn't have a way to test."
__label__NO ">this still needs more bench testing before coming in, i've only managed to sitl test the described case above so far, i just wanted this presented for earlier review, and guidance."
__label__YES "copter: add pre-arm and mode init checks of ekf's altitude estimate"
__label__YES "this pr resolves issue by adding a mandatory pre-arm check of the ahrs/ekf altitude estimate."
__label__NO "a check is also added to the set_mode call to catch problems when the user attempts to switch modes."
__label__YES ">the issue is more serious than initially expected if the user sets ekx_alt_source = (gps) because the user could more easily arm and takeoff in althold before the ekf gets a good height estimate."
__label__YES "this can lead to the vehicle continuously climbing or descending at it's maximum rate (i.e..m/s or .m/s) which at best leads to a hard landing."
__label__NO ">this has been tested in sitl including reproducing the existing behaviour in master (see below) ![copter-alt-source-althold]("
__label__NO ">below is a screen shot of some sitl testing in which arming and switching modes while flying was prevented."
__label__NO ![image](
__label__NO ">the only small issue we may have is that both the, ""need position estimate"" and ""need alt estimate"" messages may be displayed before there is a gps lock and ekx_alt_source = ."
__label__YES "copter: althold::init() should check ekf altitude is healthy"
__label__YES "althold, sport and possibly all other modes except stabilize and acro (i.e.those with manual throttle) should check that the ekf has a good altitude estimate before switching into the mode when armed (i.e.add to the mode's init() function)."
__label__YES ">we may also need to add a pre-arm/arming check that we have a good altitude estimate and it should not be possible to bypass this check by setting arming_check = ."
__label__YES "there is a similar existing check that ensures that users cannot arm in autonomous modes without a good position estimate so this may be a good reference to base the change on."
__label__NO ">note that it should always be possible to get into any mode while disarmed."
__label__YES ">when testing whether the fix works or not, it should be possible to disable the barometer in sitl (i hope we have a sim_baro_fail or similar parameter) and then confirm that the vehicle cannot enter althold mode when armed and that the vehicle cannot arm in althold."
__label__NO "copter: keep logging after parachute release"
__label__NO "we probably want to keep logging after a parachute release in order to capture the impact in the logs."
__label__NO "request from roberto n."
__label__NO "copter/ap_parachute: fix parachute checks for sink rate (attempt )"
__label__NO "this is a modified version of pr:"
__label__YES ">this pr (like the previous one) fixes copter's parachute feature so that it deploys the parachute and disarms the vehicle if the vehicle's descent rate falls below the chute_crt_sink parameter value."
__label__NO ">the current issue in master (and presumably copter-..x) can be reproduced by doing the following:"
__label__NO ">- start sitl copter - param set chute_enable - param set chute_type (servo) - param set chute_crt_sink (m/s) - param set servo_function (parachute release) - arm and fly the vehicle in stabilize mode to a reasonable altitude - rc to reduce throttle to near zero"
__label__YES ">in master the vehicle will maintain it's attitude but will fall rapidly and the parachute is **not** deployed."
__label__YES ">with this pr applied, the parachute is deployed and the vehicle is disarmed."
__label__NO ">below are before vs after screen shots of testing in sitl ![chute-before]("
__label__NO >![chute-after](
__label__NO ">@tridge would you be able to re-test with plane to ensure it is ok?"
__label__NO "this should be a non-functional change for plane but just to be sure."
__label__YES "plane: automatic landing with an enabled rangefinder causes immediate full descent into the ground"
__label__NO "## bug report **issue details**"
__label__NO ">plane lands excellently using rtk."
__label__YES "as soon as we plug in a rangefinder, the landing approach is hijacked and the airplane descends at full rate to the ground."
__label__NO "rngfnd_land = the whole time."
__label__NO "very repeatable."
__label__NO ">**version** .. beta"
__label__NO ">**platform** [ ] all [ ] antennatracker [ ] copter [x] plane [ ] rover [ ] submarine"
__label__NO ">**airframe type** twin motor electric with reverse thrust"
__label__NO ">**hardware type** cube orange, blheli esc's with telemetry, mro fp gnss with ntrip rtk streamed"
__label__NO ">**logs** rtk successful landing and rangefinder plugged in landing:"
__label__YES "copter: release parachute if vehicle expectedly falls but maintains attitude"
__label__YES "this issue came up on the forums here: involving a situation where the vehicle had a mechanical failure and crashed but it maintained it's attitude during the fall which meant the parachute did not deploy."
__label__YES ">we should enhance the parachute to deploy (perhaps optionally) if the vehicle loses it's ability to control altitude."
__label__NO "copter: pre-arm check of deprecated fs_gcs_enable = (continue in auto)"
__label__NO "this pr makes two changes related to the fs_gcs_enable and fs_option parameters:"
__label__NO ">- adds a pre-arm check if fs_gcs_enable == (continue in auto) to catch users who may have set this to ""."""
__label__NO "below is a screen shot captured while testing this check ![image]("
__label__NO ">- fs_options defaults to """" (was """") which means, ""continue if in pilot controlled modes on gcs failsafe""."
__label__NO "this was discussed on a weekly dev call about to weeks ago and we decided this what most users would expect."
__label__NO "this has been tested in sitl to ensure that new installations of . will have the value set to """" and also that upgrades from ..x (which did not have the fs_options parameter) get set correctly as part of param conversion."
__label__NO ">below is a screenshot of the parameter conversion (from ..x to .) result when fs_gcs_enable = (in copter-..x)."
__label__NO "this is correctly converted to (+) in copter-.."
__label__NO ![image](
__label__NO "> this pr closes issue:"
__label__YES "copter/rover: vehicles should back away from objects"
__label__YES "as mentioned on some of our avoidance related wiki page ([sfc]( [dev avoidance page]( copter and rover will stop before hitting something but they will never back away from an object so we should add support for this."
__label__YES "note that this is true both horizontally and vertically (i.e.a copter flying through a cave will not descend in order to avoid hitting the roof)."
__label__NO ">we can probably accomplish this by:"
__label__NO ">- add avoid_revxy_speed and avoid_revz_speed parameters to ac_avoidance/ac_avoid library."
__label__YES "this params will hold the max speed that the vehicle will reverse or descend."
__label__YES "- modify the horizontal and vertical velocity adjustment functions in ac_avoidance to allow the final velocity to be in the reverse direction of the input velocity (see [ac_avoidance/ac_avoid::adjust_velocity_z ]( and [ac_avoid::adjust_velocity]("
__label__YES "for example, for the vertical velocity adjustment (i.e.the part which stops the vehicle from hitting the altitude fence or the roof) the ""adjust_velocity_z"" function has a line like below after which it goes to handle the case where the vehicle has breached the altitude fence."
__label__YES "currently it reduces the climb rate to zero but it could instead set it to avoid_revz_speed."
__label__NO ">> if (alt_diff <= .f) {"
__label__YES "copter: warn when single motors reaches throttle limits as it's a sign the motor is failing"
__label__YES "i just had a crash due to a burnt motor."
__label__YES "the copter was set up to fly in a range of -% throttle, with peaks usually going to no more than % at maximum speed and full climb during loiter and auto ."
__label__YES ">during the last flight, the logs reveal that the throttle level of motor no."
__label__YES "suddenly rises to nearly constant % for almost a minute."
__label__YES "then the copter went out of control (tipped over motor no."
__label__NO ).
__label__YES "obviously the motor now had failed completely."
__label__YES "the coils of the motor were made by multi-strand wire - i guess one or more single wires of the coil broke/failed just as the output power reduced."
__label__YES "in the following minute, the remaining wires began to overheat and finally burnt completely."
__label__NO "the drive setup has been tested on the ground with continuous % throttle without any issues for minutes."
__label__NO >![figure_](
__label__YES ">i think the crash could have been avoided easily with a warning to the operator about the unusually high throttle output."
__label__YES "what do you think about adding a gcs/telemetry warning as soon as the throttle limits are reached during loiter and auto?"
__label__YES "even a failsafe/land action might be useful in this situation to prevent a crash or a fly-away."
__label__YES "ac_avoid: improve reliability of simple avoidance"
__label__YES "this pr adds two new feature which should go a long way in improving the reliability of simple avoidance:"
__label__NO ">adds a param: avoid_alt_min."
__label__YES "if a down facing range finder is availble, it will switch off proximity avoidance below alt_min adds a param: avoid_accel_max."
__label__YES "this limits the maximum allowed change in velocity that avoidance can make (per axis) this is a very important new addition which will make the avoidnace experience much more smoother, here is an example of what happens:"
__label__YES "downward-facing rangefinder based low altitude fence"
__label__YES "this fence prevents the copter from hitting the ground in all flight modes except stabalize, rtl and land."
__label__YES "if for some reason it does manage to go bellow the fence then rtl is triggered (rtl_alt should be bigger than fence_alt_min parameter)."
__label__YES "rtl and land flight modes completely ignore this fence."
__label__YES ">if no range finder is present it will use the height sensor selected in the ek_alt_source or ek_alt_source parameter ( )"
__label__NO ">it contains ci tests."
__label__NO ![laf_log](
__label__YES "ap_proximity: add a low pass filter to faces"
__label__NO "this pr adds a low pass filter to each ""face""."
__label__YES "its an atempt to reduce the reaction of glitches on simple avoidance."
__label__YES "what often happens is that (as reported by several logs on the forums) there is no filtiration in the current sensor drivers, and any noise gets passed down as obstacles."
__label__YES "this gives a sudden jerky response by the vehicle, which may even lead to crash."
__label__NO "to see the filteration in action, please see this video: here is an image from onboard logs tested on cube orange + intel realsense cameras: ![image]("
__label__NO ">red line is the filtered distances, green line is the raw distances."
__label__NO "a mode filter instead of low pass filter was also tested, but the ""smothness"" that comes with the low pass filter is desired."
__label__NO ">additional param is also added to enable ""raw distance"" logging for debugging purposses."
__label__NO "normally it will be turned off."
__label__YES "plane: climb before turn on rtl"
__label__NO "before i write anything let me point out that other people were requesting this rtl behavior change in a more or less similar way."
__label__NO "my today's fpv experience: i took off from a spot meters amsl (altitude above mean sea level) i was remotely landing the plane while in the stabilized mode at an rc field that was a meters away from me and a bit lower - amsl."
__label__NO "i was gliding in for landing."
__label__NO "all was great."
__label__NO "i had a perfect video link to make a nice landing."
__label__YES "just before the touch down, the plane lost rc link and the rtl mode kicked in."
__label__YES "i was no longer in control."
__label__YES "the ardupilot software executed an immediate right turn towards the take off position without any climb."
__label__NO "just a turn."
__label__YES "that of course was followed by a crash as the plane was so low and the tip of the wing touched the ground."
__label__NO "my rtl altitude was set to meters."
__label__YES "i suggest the code should be adjusted to climb the plane to a safe altitude before turning to the home position."
__label__NO "i understand this could not suite to all platforms so at least this behavior could be user pick able."
__label__NO "the only data that survived was the camera footage."
__label__NO "the flight deck sdcard was destroyed."
__label__NO ">[video of the event here]("
__label__YES ">as you can see, the only thing needed for a happy ending, was a little climb before the turn and the plane would had been saved."
__label__YES "can someone make this a priority before other people crash their planes during a low altitude rtl triggering?"
__label__YES "copter: ekf failsafe only triggers if ekf has ever had a good position estimate"
__label__NO "this pr resolves issue which involves the ekf failsafe triggering soon after the vehicle is armed in stabilize (or any other non-gps mode) if it doesn't have a good position estimate."
__label__YES "when the ekf failsafe triggers in a non-gps mode no action is taken but it still unnecessarily worries the user who sees ""ekf variance"" appear on the gcs and also sees the vehicle's led's flash."
__label__NO ">the fix has two parts:"
__label__NO >.
__label__YES "the ekf failsafe only triggers if the threshold and position checks have passed at least once since startup."
__label__NO "this resolves the problem seen above ."
__label__YES "the ekf failsafe may trigger while the vehicle is disarmed but will take no action."
__label__NO ">the potential downsides of the second change are:"
__label__NO >.
__label__NO "the user may see the ekf failsafe trigger (e.g.""ekf variance"" message and flashing leds) that they would not have seen before if the ekf momentarily passes the checks but then fails again."
__label__NO .
__label__YES "it may take second longer for the vehicle to become arm-able in loiter if the ekf failsafe has triggered while disarmed because once triggered, the ekf failsafe always takes at least second to clear and copter's arming checks use the ""position_ok()"" call which in turn checks the ekf failsafe is clear."
__label__NO ">this has been lightly tested in sitl and seems to function but needs some more testing especially to be sure the above issues are rare."
__label__NO "if they are not rare we may chose to remove the nd change."
__label__YES "copter: add ekf failsafe notify tones"
__label__YES "when ekf failsafe was triggered, some users were unaware that it was switched to land."
__label__YES "they feel that the copter suddenly become unstable and descend."
__label__YES "i think tonealarm makes the user aware the failsafe easily."
__label__NO ">i tested this in copter using cubeblack without propellers."
__label__NO "if ekf failsafe is triggered, activates buzzer."
__label__NO "after disarmed, stop the buzzer."
__label__NO ">if we need same functionality in other vehicles, i can add it."
__label__YES "ap_motors: constrain get_throttle_hover value with allowed range"
__label__NO "failure testing for . flight certification"
__label__NO "this is a forward port of from copter-.. to to the copter-. branch."
__label__NO "i also improved the commit messages a bit."
__label__NO ">this is meant for testing purposes only."
__label__NO "this enables some flight certification tests."
__label__NO ">do not use in production"
__label__YES "ap_arming: determine the minimum voltage of fc at volts when gnss is connected"
__label__NO "i would like to use fp to increase my positioning accuracy."
__label__NO "i wanted to set the minimum voltage of the fc to volts after seeing the report below."
__label__NO "i am also including other gnss because higher voltage is better for the device than lower voltage."
__label__NO >report:
__label__NO ">after: ![screenshot from -- --]("
__label__YES "copter/quadplane: set yaw rate to zero during arming"
__label__YES "this pr fixes a bug where the act of arming the aircraft commands a yaw rate request that is not zeroed."
__label__YES "this means that the aircraft develops a yaw offset immediately after arming."
__label__NO ">this also fixes a similar issue with loiter where the attitude is commanded level rather than the current attitude causing motors to run up unnecessarily."
__label__YES "arduplane: add ac_fence for qgc. geofence support"
__label__NO "pr based on # - see further discussion there"
__label__YES ">- moves plane from `geofence` to `ac_fence` for fence support in qgc."
__label__YES "- `geofence` capability has been dropped in favour of `ac_fence`."
__label__NO "some assumptions have been made."
__label__YES "- adds floor breaching to `ac_fence` - adds an autotest for testing ceiling and floor breaches."
__label__NO "issue in existing geofence implementation would be carried across (#) - existing autotests for `geofence` work, mostly untouched."
__label__NO "- discussion to be had around mav status present/enabled bits."
__label__NO ">requires: - merge - documentation:"
__label__YES ">todo: - [x] minimum altitude fence breach - _autotests have been added_ - [x] ensure we can auto-enable the fence when vehicle armed - _autotests have been added_ - [x] should disallow arming if we are outside the fence when we auto-enable - _autotests have been added_ - [x] need tests around mav_cmd_do_fence_enable - [x] fence_ret_rally works - _autotests have been added._ - [x] need tests for what happens when fences are disabled while we're breached and undertaking an action - _autotests have been added_"
__label__YES "ap_arming: pre-arm check if compass is disabled but or are enabled"
__label__YES "this pr adds a pre-arm check to reduce the chance of users accidentally disabling all compasses when they only intended to disable the first one."
__label__NO "see issue"
__label__YES ">the issue can happen (and has happened) because users assume that they can disable the first compass but keep on using the nd or rd compass if they set params like this:>-"
__label__NO "compass_use = - compass_use = - compass_use ="
__label__YES ">since the compass prioritisation changes however this results in the ekf not using any compasses which is unexpected and potentially dangerous."
__label__NO ">the potential downside of this change is that users who wish to disable use of the compass completely will need to set parameters instead of just one."
__label__NO ">this has been lightly tested in sitl and seems to do what we need."
__label__NO ">this is on the copter-. blockers list."
__label__NO 
__label__NO >p.s.
__label__NO "this pr also includes a drive-by change to remove the unused ""compass::set_use_for_yaw()"" method."
